Class ErrorCodes
- java.lang.Object
-
- com.priint.pubserver.comet.exception.ErrorCodes
-
public class ErrorCodes extends java.lang.ObjectErrorCodes ported from CometServer 3.3The InDesign Desktop and Server Plug-Ins rely on some of these ErrorCodes, so they must not be changed.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classErrorCodes.ErrorMapThe enum Error map.
-
Field Summary
Fields Modifier and Type Field Description static intDOCUMENT_CHECKIN_CONNECTOR_ERRORThe constant DOCUMENT_CHECKIN_CONNECTOR_ERROR "1252".static intDOCUMENT_CHECKIN_NETWORK_ERRORThe constant DOCUMENT_CHECKIN_NETWORK_ERROR "1251".static intDOCUMENT_CHECKOUT_CONNECTOR_ERRORThe constant DOCUMENT_CHECKOUT_CONNECTOR_ERROR "1254".static intDOCUMENT_CHECKOUT_NETWORK_ERRORThe constant DOCUMENT_CHECKOUT_NETWORK_ERROR "1253".static intILLEGAL_SOAP_CALL_METHODThe constant ILLEGAL_SOAP_CALL_METHOD "1256".static intILLEGAL_SOAP_GETLIST_METHODThe constant ILLEGAL_SOAP_GETLIST_METHOD "1255".static intNO_DATABASE_CONNECTIONThe constant NO_DATABASE_CONNECTION "1239".static intOFFLINE_ERRORThe constant OFFLINE_ERROR "0015".static intPRIINT_CLIENTADRESS_CONFLICTThe constant PRIINT_CLIENTADRESS_CONFLICT "0016".static intPRIINT_DATA_FAILUREThe constant PRIINT_DATA_FAILURE "0012".static intPRIINT_DATA_MISSINGThe constant PRIINT_DATA_MISSING "0013".static intPRIINT_GENERIC_ERRORThe constant PRIINT_GENERIC_ERROR "0001".static intPRIINT_ILLEGAL_DOCSTATEThe constant PRIINT_ILLEGAL_DOCSTATE "0004".static intPRIINT_ILLEGAL_REQUESTORThe constant PRIINT_ILLEGAL_REQUESTOR "0014".static intPRIINT_INVALID_SESSIONThe constant PRIINT_INVALID_SESSION "0002".static intPRIINT_SERVERFS_FAILUREThe constant PRIINT_SERVERFS_FAILURE "0011".static intPRIINT_SERVERFS_READ_FAILUREThe constant PRIINT_SERVERFS_READ_FAILURE "0007".static intPRIINT_SERVERFS_WRITE_FAILUREThe constant PRIINT_SERVERFS_WRITE_FAILURE "0006".static intPRIINT_SERVERFS_ZIP_FAILUREThe constant PRIINT_SERVERFS_ZIP_FAILURE "0010".static intPRIINT_TRANSPORT_FAILUREThe constant PRIINT_TRANSPORT_FAILURE "0005".static intPRIINT_UNKNOWN_DOCThe constant PRIINT_UNKNOWN_DOC "0003".static intSQLEXEC_ERRORThe constant SQLEXEC_ERROR "538401".static intSUCCESSThe constant SUCCESS "0".
-
Constructor Summary
Constructors Constructor Description ErrorCodes()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static java.lang.StringgetDefaultMessageByErrorCode(int errorCode)Gets default message by error code.static intgetErrorCodeByExceptionClass(java.lang.Class<? extends java.lang.Throwable> exceptionClass)Gets error code by exception class.static intgetErrorCodeByExceptionClass(java.lang.Throwable cause)Gets error code by exception class.
-
-
-
Field Detail
-
SUCCESS
public static final int SUCCESS
The constant SUCCESS "0".- See Also:
- Constant Field Values
-
PRIINT_GENERIC_ERROR
public static final int PRIINT_GENERIC_ERROR
The constant PRIINT_GENERIC_ERROR "0001".- See Also:
- Constant Field Values
-
PRIINT_INVALID_SESSION
public static final int PRIINT_INVALID_SESSION
The constant PRIINT_INVALID_SESSION "0002".- See Also:
- Constant Field Values
-
PRIINT_UNKNOWN_DOC
public static final int PRIINT_UNKNOWN_DOC
The constant PRIINT_UNKNOWN_DOC "0003".- See Also:
- Constant Field Values
-
PRIINT_ILLEGAL_DOCSTATE
public static final int PRIINT_ILLEGAL_DOCSTATE
The constant PRIINT_ILLEGAL_DOCSTATE "0004".- See Also:
- Constant Field Values
-
PRIINT_TRANSPORT_FAILURE
public static final int PRIINT_TRANSPORT_FAILURE
The constant PRIINT_TRANSPORT_FAILURE "0005".- See Also:
- Constant Field Values
-
PRIINT_SERVERFS_WRITE_FAILURE
public static final int PRIINT_SERVERFS_WRITE_FAILURE
The constant PRIINT_SERVERFS_WRITE_FAILURE "0006".- See Also:
- Constant Field Values
-
PRIINT_SERVERFS_READ_FAILURE
public static final int PRIINT_SERVERFS_READ_FAILURE
The constant PRIINT_SERVERFS_READ_FAILURE "0007".- See Also:
- Constant Field Values
-
PRIINT_SERVERFS_ZIP_FAILURE
public static final int PRIINT_SERVERFS_ZIP_FAILURE
The constant PRIINT_SERVERFS_ZIP_FAILURE "0010".- See Also:
- Constant Field Values
-
PRIINT_SERVERFS_FAILURE
public static final int PRIINT_SERVERFS_FAILURE
The constant PRIINT_SERVERFS_FAILURE "0011".- See Also:
- Constant Field Values
-
PRIINT_DATA_FAILURE
public static final int PRIINT_DATA_FAILURE
The constant PRIINT_DATA_FAILURE "0012".- See Also:
- Constant Field Values
-
PRIINT_DATA_MISSING
public static final int PRIINT_DATA_MISSING
The constant PRIINT_DATA_MISSING "0013".- See Also:
- Constant Field Values
-
PRIINT_ILLEGAL_REQUESTOR
public static final int PRIINT_ILLEGAL_REQUESTOR
The constant PRIINT_ILLEGAL_REQUESTOR "0014".- See Also:
- Constant Field Values
-
OFFLINE_ERROR
public static final int OFFLINE_ERROR
The constant OFFLINE_ERROR "0015".- See Also:
- Constant Field Values
-
PRIINT_CLIENTADRESS_CONFLICT
public static final int PRIINT_CLIENTADRESS_CONFLICT
The constant PRIINT_CLIENTADRESS_CONFLICT "0016".- See Also:
- Constant Field Values
-
DOCUMENT_CHECKIN_NETWORK_ERROR
public static final int DOCUMENT_CHECKIN_NETWORK_ERROR
The constant DOCUMENT_CHECKIN_NETWORK_ERROR "1251".- See Also:
- Constant Field Values
-
DOCUMENT_CHECKIN_CONNECTOR_ERROR
public static final int DOCUMENT_CHECKIN_CONNECTOR_ERROR
The constant DOCUMENT_CHECKIN_CONNECTOR_ERROR "1252".- See Also:
- Constant Field Values
-
DOCUMENT_CHECKOUT_NETWORK_ERROR
public static final int DOCUMENT_CHECKOUT_NETWORK_ERROR
The constant DOCUMENT_CHECKOUT_NETWORK_ERROR "1253".- See Also:
- Constant Field Values
-
DOCUMENT_CHECKOUT_CONNECTOR_ERROR
public static final int DOCUMENT_CHECKOUT_CONNECTOR_ERROR
The constant DOCUMENT_CHECKOUT_CONNECTOR_ERROR "1254".- See Also:
- Constant Field Values
-
SQLEXEC_ERROR
public static final int SQLEXEC_ERROR
The constant SQLEXEC_ERROR "538401".- See Also:
- Constant Field Values
-
NO_DATABASE_CONNECTION
public static final int NO_DATABASE_CONNECTION
The constant NO_DATABASE_CONNECTION "1239".- See Also:
- Constant Field Values
-
ILLEGAL_SOAP_GETLIST_METHOD
public static final int ILLEGAL_SOAP_GETLIST_METHOD
The constant ILLEGAL_SOAP_GETLIST_METHOD "1255".- See Also:
- Constant Field Values
-
ILLEGAL_SOAP_CALL_METHOD
public static final int ILLEGAL_SOAP_CALL_METHOD
The constant ILLEGAL_SOAP_CALL_METHOD "1256".- See Also:
- Constant Field Values
-
-
Method Detail
-
getErrorCodeByExceptionClass
public static int getErrorCodeByExceptionClass(java.lang.Throwable cause)
Gets error code by exception class.- Parameters:
cause- the cause- Returns:
- the error code by exception class
-
getErrorCodeByExceptionClass
public static int getErrorCodeByExceptionClass(java.lang.Class<? extends java.lang.Throwable> exceptionClass)
Gets error code by exception class.- Parameters:
exceptionClass- the exception class- Returns:
- the error code by exception class
-
getDefaultMessageByErrorCode
public static java.lang.String getDefaultMessageByErrorCode(int errorCode)
Gets default message by error code.- Parameters:
errorCode- the error code- Returns:
- the default message by error code
-
-