Class EcmErrorCodes


  • public final class EcmErrorCodes
    extends java.lang.Object
    Defines the ECM Service error codes used in the system. All error codes defined in this definition MUST inherit from ErrorConstantType and MUST be declared as public static final.
    Author:
    owaeldrich
    • Field Detail

      • SYSTEM_SERIALIZATION_ERROR

        public static final com.lexmark.saperion.exceptions.system.SystemException.SystemError SYSTEM_SERIALIZATION_ERROR
        error code - 101
      • SYSTEM_DESERIALIZATION_ERROR

        public static final com.lexmark.saperion.exceptions.system.SystemException.SystemError SYSTEM_DESERIALIZATION_ERROR
        error code - 102
      • SYSTEM_CONNECTION_ERROR

        public static final com.lexmark.saperion.exceptions.system.SystemException.SystemError SYSTEM_CONNECTION_ERROR
        error code - 103
      • SYSTEM_CONNECTION_POOL_ERROR

        public static final com.lexmark.saperion.exceptions.system.SystemException.SystemError SYSTEM_CONNECTION_POOL_ERROR
        error code - 104
      • PROTOCOL_MISSING_VERSION

        public static final com.lexmark.saperion.exceptions.system.SystemException.SystemError PROTOCOL_MISSING_VERSION
        error code - 105
      • PROTOCOL_INCOMPATIBLE_VERSION

        public static final com.lexmark.saperion.exceptions.system.SystemException.SystemError PROTOCOL_INCOMPATIBLE_VERSION
        error code - 106
      • CLIENT_CONCURRENT_WRITE_ERROR

        public static final com.lexmark.saperion.exceptions.runtime.ClientException.ClientError CLIENT_CONCURRENT_WRITE_ERROR
        error code - 302
      • CLIENT_OBJECT_LOCKED_ERROR

        public static final com.lexmark.saperion.exceptions.runtime.ClientException.ClientError CLIENT_OBJECT_LOCKED_ERROR
        error code - 304
      • CLIENT_NO_LICENSE_AVAILABLE_ERROR

        public static final com.lexmark.saperion.exceptions.runtime.ClientException.ClientError CLIENT_NO_LICENSE_AVAILABLE_ERROR
        error code - 305
      • CLIENT_WRONG_ARCHIVE_TYPE_ERROR

        public static final com.lexmark.saperion.exceptions.runtime.IllegalRequestException.IllegalInputError CLIENT_WRONG_ARCHIVE_TYPE_ERROR
        error code - 321
      • CLIENT_SYSTEM_FIELD_WRITE_ERROR

        public static final com.lexmark.saperion.exceptions.runtime.IllegalRequestException.IllegalInputError CLIENT_SYSTEM_FIELD_WRITE_ERROR
        error code - 322
      • CLIENT_MANDATORY_CONSTRAINT_VIOLATION_ERROR

        public static final com.lexmark.saperion.exceptions.runtime.IllegalRequestException.IllegalInputError CLIENT_MANDATORY_CONSTRAINT_VIOLATION_ERROR
        error code - 323
      • CLIENT_UNIQUE_CONSTRAINT_VIOLATION_ERROR

        public static final com.lexmark.saperion.exceptions.runtime.IllegalRequestException.IllegalInputError CLIENT_UNIQUE_CONSTRAINT_VIOLATION_ERROR
        error code - 324
      • CLIENT_STORAGE_PROFILE_ASSIGNMENT_ERROR

        public static final com.lexmark.saperion.exceptions.runtime.IllegalRequestException.IllegalInputError CLIENT_STORAGE_PROFILE_ASSIGNMENT_ERROR
        error code - 325
      • CLIENT_ILLEGAL_RETENTION_ERROR

        public static final com.lexmark.saperion.exceptions.runtime.IllegalRequestException.IllegalInputError CLIENT_ILLEGAL_RETENTION_ERROR
        error code - 326
      • CLIENT_RETENTION_VIOLATION_ERROR

        public static final com.lexmark.saperion.exceptions.runtime.IllegalRequestException.IllegalInputError CLIENT_RETENTION_VIOLATION_ERROR
        error code - 327
      • APPLICATION_MALFORMED_ENTITY_ERROR

        public static final com.lexmark.saperion.exceptions.application.ApplicationException.ApplicationError APPLICATION_MALFORMED_ENTITY_ERROR
        error code - 401
      • SEARCH_ERROR

        public static final com.lexmark.saperion.exceptions.application.SearchException.SearchError SEARCH_ERROR
        error code - 420
      • INTERNAL_SERVER_ERROR

        public static final com.lexmark.saperion.exceptions.system.SystemException.SystemError INTERNAL_SERVER_ERROR
        error code - 500
      • SEARCH_RUNTIME_ERROR

        public static final com.lexmark.saperion.exceptions.application.SearchException.SearchError SEARCH_RUNTIME_ERROR
        error code - 423
      • APPLICATION_ERROR_OFFSET

        public static final int APPLICATION_ERROR_OFFSET
        See Also:
        Constant Field Values
    • Method Detail

      • values

        public static com.lexmark.saperion.exceptions.ErrorConstantType[] values()
        Returns all error code constant definitions from this class. Constants returned by this method inherit from ErrorConstantType and are declared as public static final. Other constants are ignored.
        Returns:
        the defined error code constants
      • name

        public static java.lang.String name​(com.lexmark.saperion.exceptions.ErrorCodeType constant)
        Returns the name for the given error code constant.
        Parameters:
        constant - the error constant to retrieve the name for
        Returns:
        the error code name
      • isSystemError

        public static boolean isSystemError​(int errorCode)
      • isSecurityError

        public static boolean isSecurityError​(int errorCode)
      • isClientError

        public static boolean isClientError​(int errorCode)
      • isApplicationError

        public static boolean isApplicationError​(int errorCode)