Class ErrorCodes
java.lang.Object
com.priint.pubserver.comet.exception.ErrorCodes
ErrorCodes ported from CometServer 3.3
The InDesign Desktop and Server Plug-Ins rely on some of these ErrorCodes, so they must not be changed.
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intThe constant DOCUMENT_CHECKIN_CONNECTOR_ERROR "1252".static final intThe constant DOCUMENT_CHECKIN_NETWORK_ERROR "1251".static final intThe constant DOCUMENT_CHECKOUT_CONNECTOR_ERROR "1254".static final intThe constant DOCUMENT_CHECKOUT_NETWORK_ERROR "1253".static final intThe constant ILLEGAL_SOAP_CALL_METHOD "1256".static final intThe constant ILLEGAL_SOAP_GETLIST_METHOD "1255".static final intThe constant NO_DATABASE_CONNECTION "1239".static final intThe constant OFFLINE_ERROR "0015".static final intThe constant PRIINT_CLIENTADRESS_CONFLICT "0016".static final intThe constant PRIINT_DATA_FAILURE "0012".static final intThe constant PRIINT_DATA_MISSING "0013".static final intThe constant PRIINT_GENERIC_ERROR "0001".static final intThe constant PRIINT_ILLEGAL_DOCSTATE "0004".static final intThe constant PRIINT_ILLEGAL_REQUESTOR "0014".static final intThe constant PRIINT_INVALID_SESSION "0002".static final intThe constant PRIINT_SERVERFS_FAILURE "0011".static final intThe constant PRIINT_SERVERFS_READ_FAILURE "0007".static final intThe constant PRIINT_SERVERFS_WRITE_FAILURE "0006".static final intThe constant PRIINT_SERVERFS_ZIP_FAILURE "0010".static final intThe constant PRIINT_TRANSPORT_FAILURE "0005".static final intThe constant PRIINT_UNKNOWN_DOC "0003".static final intThe constant SQLEXEC_ERROR "538401".static final intThe constant SUCCESS "0". -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic StringgetDefaultMessageByErrorCode(int errorCode) Gets default message by error code.static intgetErrorCodeByExceptionClass(Class<? extends Throwable> exceptionClass) Gets error code by exception class.static intGets error code by exception class.
-
Field Details
-
SUCCESS
public static final int SUCCESSThe constant SUCCESS "0".- See Also:
-
PRIINT_GENERIC_ERROR
public static final int PRIINT_GENERIC_ERRORThe constant PRIINT_GENERIC_ERROR "0001".- See Also:
-
PRIINT_INVALID_SESSION
public static final int PRIINT_INVALID_SESSIONThe constant PRIINT_INVALID_SESSION "0002".- See Also:
-
PRIINT_UNKNOWN_DOC
public static final int PRIINT_UNKNOWN_DOCThe constant PRIINT_UNKNOWN_DOC "0003".- See Also:
-
PRIINT_ILLEGAL_DOCSTATE
public static final int PRIINT_ILLEGAL_DOCSTATEThe constant PRIINT_ILLEGAL_DOCSTATE "0004".- See Also:
-
PRIINT_TRANSPORT_FAILURE
public static final int PRIINT_TRANSPORT_FAILUREThe constant PRIINT_TRANSPORT_FAILURE "0005".- See Also:
-
PRIINT_SERVERFS_WRITE_FAILURE
public static final int PRIINT_SERVERFS_WRITE_FAILUREThe constant PRIINT_SERVERFS_WRITE_FAILURE "0006".- See Also:
-
PRIINT_SERVERFS_READ_FAILURE
public static final int PRIINT_SERVERFS_READ_FAILUREThe constant PRIINT_SERVERFS_READ_FAILURE "0007".- See Also:
-
PRIINT_SERVERFS_ZIP_FAILURE
public static final int PRIINT_SERVERFS_ZIP_FAILUREThe constant PRIINT_SERVERFS_ZIP_FAILURE "0010".- See Also:
-
PRIINT_SERVERFS_FAILURE
public static final int PRIINT_SERVERFS_FAILUREThe constant PRIINT_SERVERFS_FAILURE "0011".- See Also:
-
PRIINT_DATA_FAILURE
public static final int PRIINT_DATA_FAILUREThe constant PRIINT_DATA_FAILURE "0012".- See Also:
-
PRIINT_DATA_MISSING
public static final int PRIINT_DATA_MISSINGThe constant PRIINT_DATA_MISSING "0013".- See Also:
-
PRIINT_ILLEGAL_REQUESTOR
public static final int PRIINT_ILLEGAL_REQUESTORThe constant PRIINT_ILLEGAL_REQUESTOR "0014".- See Also:
-
OFFLINE_ERROR
public static final int OFFLINE_ERRORThe constant OFFLINE_ERROR "0015".- See Also:
-
PRIINT_CLIENTADRESS_CONFLICT
public static final int PRIINT_CLIENTADRESS_CONFLICTThe constant PRIINT_CLIENTADRESS_CONFLICT "0016".- See Also:
-
DOCUMENT_CHECKIN_NETWORK_ERROR
public static final int DOCUMENT_CHECKIN_NETWORK_ERRORThe constant DOCUMENT_CHECKIN_NETWORK_ERROR "1251".- See Also:
-
DOCUMENT_CHECKIN_CONNECTOR_ERROR
public static final int DOCUMENT_CHECKIN_CONNECTOR_ERRORThe constant DOCUMENT_CHECKIN_CONNECTOR_ERROR "1252".- See Also:
-
DOCUMENT_CHECKOUT_NETWORK_ERROR
public static final int DOCUMENT_CHECKOUT_NETWORK_ERRORThe constant DOCUMENT_CHECKOUT_NETWORK_ERROR "1253".- See Also:
-
DOCUMENT_CHECKOUT_CONNECTOR_ERROR
public static final int DOCUMENT_CHECKOUT_CONNECTOR_ERRORThe constant DOCUMENT_CHECKOUT_CONNECTOR_ERROR "1254".- See Also:
-
SQLEXEC_ERROR
public static final int SQLEXEC_ERRORThe constant SQLEXEC_ERROR "538401".- See Also:
-
NO_DATABASE_CONNECTION
public static final int NO_DATABASE_CONNECTIONThe constant NO_DATABASE_CONNECTION "1239".- See Also:
-
ILLEGAL_SOAP_GETLIST_METHOD
public static final int ILLEGAL_SOAP_GETLIST_METHODThe constant ILLEGAL_SOAP_GETLIST_METHOD "1255".- See Also:
-
ILLEGAL_SOAP_CALL_METHOD
public static final int ILLEGAL_SOAP_CALL_METHODThe constant ILLEGAL_SOAP_CALL_METHOD "1256".- See Also:
-
-
Constructor Details
-
ErrorCodes
public ErrorCodes()
-
-
Method Details
-
getErrorCodeByExceptionClass
Gets error code by exception class.- Parameters:
cause- the cause- Returns:
- the error code by exception class
-
getErrorCodeByExceptionClass
Gets error code by exception class.- Parameters:
exceptionClass- the exception class- Returns:
- the error code by exception class
-
getDefaultMessageByErrorCode
Gets default message by error code.- Parameters:
errorCode- the error code- Returns:
- the default message by error code
-