Class ErrorCodes


  • public class ErrorCodes
    extends java.lang.Object
    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.

    • Field Detail

      • 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
    • Constructor Detail

      • ErrorCodes

        public ErrorCodes()
    • 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