FileDocCategorySizeDatePackage
WSTCPError.javaAPI DocExample3590Tue May 29 16:57:14 BST 2007com.sun.xml.ws.transport.tcp.util

WSTCPError

public class WSTCPError extends Object
author
Alexey Stashok

Fields Summary
private final int
code
private final int
subCode
private final String
description
Constructors Summary
private WSTCPError(int code, int subCode, String description)

        this.code = code;
        this.subCode = subCode;
        this.description = description;
    
Methods Summary
public static com.sun.xml.ws.transport.tcp.util.WSTCPErrorcreateCriticalError(int subCode, java.lang.String description)

        return new WSTCPError(TCPConstants.CRITICAL_ERROR, subCode, description);
    
public static com.sun.xml.ws.transport.tcp.util.WSTCPErrorcreateError(int code, int subCode, java.lang.String description)

        return new WSTCPError(code, subCode, description);
    
public static com.sun.xml.ws.transport.tcp.util.WSTCPErrorcreateNonCriticalError(int subCode, java.lang.String description)

        return new WSTCPError(TCPConstants.NON_CRITICAL_ERROR, subCode, description);
    
public intgetCode()

        return code;
    
public java.lang.StringgetDescription()

        return description;
    
public intgetSubCode()

        return subCode;
    
public booleanisCritical()

        return code == TCPConstants.CRITICAL_ERROR;
    
public java.lang.StringtoString()

        final StringBuffer sb = new StringBuffer(100);
        sb.append("Code: ");
        sb.append(code);
        sb.append(" SubCode: ");
        sb.append(subCode);
        sb.append(" Description: ");
        sb.append(description);
        return sb.toString();