Package com.lexmark.saperion.exceptions
Class EcmErrorCodes
- java.lang.Object
-
- com.lexmark.saperion.exceptions.EcmErrorCodes
-
public final class EcmErrorCodes extends java.lang.ObjectDefines the ECM Service error codes used in the system. All error codes defined in this definition MUST inherit fromErrorConstantTypeand MUST be declared as public static final.- Author:
- owaeldrich
-
-
Field Summary
Fields Modifier and Type Field Description static intAPPLICATION_ERROR_OFFSETstatic com.lexmark.saperion.exceptions.application.ApplicationException.ApplicationErrorAPPLICATION_MALFORMED_ENTITY_ERRORerror code - 401static SecurityException.SecurityErrorAUTHENTICATION_ERRORerror code - 206static SecurityException.SecurityErrorAUTHENTICATION_INVALID_HEADERerror code - 208static SecurityException.SecurityErrorAUTHENTICATION_INVALID_PASSWORDerror code - 210static SecurityException.SecurityErrorAUTHENTICATION_INVALID_TENANTerror code - 209static SecurityException.SecurityErrorAUTHENTICATION_PASSWORD_EXPIREDerror code - 211static SecurityException.SecurityErrorAUTHENTICATION_UNKNOWN_SCHEMEerror code - 207static BackendSystemException.BackendSystemErrorBACKEND_CONFIGURATION_ERRORerror code - 121static BackendSystemException.BackendSystemErrorBACKEND_CONNECTION_ERRORerror code - 122static BackendSystemException.BackendSystemErrorBACKEND_EVENT_PROCESSING_ERRORerror code - 123static BackendSystemException.BackendSystemErrorBACKEND_SYSTEM_ERRORerror code - 120static BackendSystemException.BackendSystemErrorBACKEND_UN_PROCESSABLE_OPERATION_ERRORerror code - 124static com.lexmark.saperion.exceptions.runtime.ClientException.ClientErrorCLIENT_CONCURRENT_WRITE_ERRORerror code - 302static intCLIENT_ERROR_OFFSETstatic com.lexmark.saperion.exceptions.runtime.IllegalRequestException.IllegalInputErrorCLIENT_ILLEGAL_RETENTION_ERRORerror code - 326static com.lexmark.saperion.exceptions.runtime.IllegalRequestException.IllegalInputErrorCLIENT_MANDATORY_CONSTRAINT_VIOLATION_ERRORerror code - 323static com.lexmark.saperion.exceptions.runtime.ClientException.ClientErrorCLIENT_NO_LICENSE_AVAILABLE_ERRORerror code - 305static com.lexmark.saperion.exceptions.runtime.ClientException.ClientErrorCLIENT_OBJECT_LOCKED_ERRORerror code - 304static com.lexmark.saperion.exceptions.runtime.IllegalRequestException.IllegalInputErrorCLIENT_RETENTION_VIOLATION_ERRORerror code - 327static com.lexmark.saperion.exceptions.runtime.IllegalRequestException.IllegalInputErrorCLIENT_STORAGE_PROFILE_ASSIGNMENT_ERRORerror code - 325static com.lexmark.saperion.exceptions.runtime.IllegalRequestException.IllegalInputErrorCLIENT_SYSTEM_FIELD_WRITE_ERRORerror code - 322static com.lexmark.saperion.exceptions.runtime.IllegalRequestException.IllegalInputErrorCLIENT_UNIQUE_CONSTRAINT_VIOLATION_ERRORerror code - 324static com.lexmark.saperion.exceptions.runtime.IllegalRequestException.IllegalInputErrorCLIENT_WRONG_ARCHIVE_TYPE_ERRORerror code - 321static intINTERNAL_ERROR_OFFSETstatic com.lexmark.saperion.exceptions.system.SystemException.SystemErrorINTERNAL_SERVER_ERRORerror code - 500static com.lexmark.saperion.exceptions.system.SystemException.SystemErrorPROTOCOL_INCOMPATIBLE_VERSIONerror code - 106static com.lexmark.saperion.exceptions.system.SystemException.SystemErrorPROTOCOL_MISSING_VERSIONerror code - 105static com.lexmark.saperion.exceptions.application.SearchException.SearchErrorSEARCH_ERRORerror code - 420static com.lexmark.saperion.exceptions.application.SearchException.SearchErrorSEARCH_RUNTIME_ERRORerror code - 423static SecurityException.SecurityErrorSECURITY_ACCESS_DENIEDerror code - 201static SecurityException.SecurityErrorSECURITY_ERRORerror code - 200static intSECURITY_ERROR_OFFSETstatic SecurityException.SecurityErrorSECURITY_TOKEN_EXPIREDerror code - 203static SecurityException.SecurityErrorSECURITY_TOKEN_INCONSISTENTerror code - 205static SecurityException.SecurityErrorSECURITY_TOKEN_INVALIDerror code - 204static SecurityException.SecurityErrorSECURITY_TOKEN_UNKNOWNerror code - 202static com.lexmark.saperion.exceptions.system.SystemException.SystemErrorSYSTEM_CONNECTION_ERRORerror code - 103static com.lexmark.saperion.exceptions.system.SystemException.SystemErrorSYSTEM_CONNECTION_POOL_ERRORerror code - 104static com.lexmark.saperion.exceptions.system.SystemException.SystemErrorSYSTEM_DESERIALIZATION_ERRORerror code - 102static com.lexmark.saperion.exceptions.system.SystemException.SystemErrorSYSTEM_SERIALIZATION_ERRORerror code - 101static WorkflowException.WorkflowErrorWORKFLOW_ACTOR_REQUIREDerror code - 411static WorkflowException.WorkflowErrorWORKFLOW_ERRORerror code - 410
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static booleanisApplicationError(int errorCode)static booleanisClientError(int errorCode)static booleanisSecurityError(int errorCode)static booleanisSystemError(int errorCode)static java.lang.Stringname(com.lexmark.saperion.exceptions.ErrorCodeType constant)Returns the name for the given error code constant.static com.lexmark.saperion.exceptions.ErrorConstantType[]values()Returns all error code constant definitions from this class.
-
-
-
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
-
BACKEND_SYSTEM_ERROR
public static final BackendSystemException.BackendSystemError BACKEND_SYSTEM_ERROR
error code - 120
-
BACKEND_CONFIGURATION_ERROR
public static final BackendSystemException.BackendSystemError BACKEND_CONFIGURATION_ERROR
error code - 121
-
BACKEND_CONNECTION_ERROR
public static final BackendSystemException.BackendSystemError BACKEND_CONNECTION_ERROR
error code - 122
-
BACKEND_EVENT_PROCESSING_ERROR
public static final BackendSystemException.BackendSystemError BACKEND_EVENT_PROCESSING_ERROR
error code - 123
-
BACKEND_UN_PROCESSABLE_OPERATION_ERROR
public static final BackendSystemException.BackendSystemError BACKEND_UN_PROCESSABLE_OPERATION_ERROR
error code - 124
-
SECURITY_ERROR
public static final SecurityException.SecurityError SECURITY_ERROR
error code - 200
-
SECURITY_ACCESS_DENIED
public static final SecurityException.SecurityError SECURITY_ACCESS_DENIED
error code - 201
-
SECURITY_TOKEN_UNKNOWN
public static final SecurityException.SecurityError SECURITY_TOKEN_UNKNOWN
error code - 202
-
SECURITY_TOKEN_EXPIRED
public static final SecurityException.SecurityError SECURITY_TOKEN_EXPIRED
error code - 203
-
SECURITY_TOKEN_INVALID
public static final SecurityException.SecurityError SECURITY_TOKEN_INVALID
error code - 204
-
SECURITY_TOKEN_INCONSISTENT
public static final SecurityException.SecurityError SECURITY_TOKEN_INCONSISTENT
error code - 205
-
AUTHENTICATION_ERROR
public static final SecurityException.SecurityError AUTHENTICATION_ERROR
error code - 206
-
AUTHENTICATION_UNKNOWN_SCHEME
public static final SecurityException.SecurityError AUTHENTICATION_UNKNOWN_SCHEME
error code - 207
-
AUTHENTICATION_INVALID_HEADER
public static final SecurityException.SecurityError AUTHENTICATION_INVALID_HEADER
error code - 208
-
AUTHENTICATION_INVALID_TENANT
public static final SecurityException.SecurityError AUTHENTICATION_INVALID_TENANT
error code - 209
-
AUTHENTICATION_INVALID_PASSWORD
public static final SecurityException.SecurityError AUTHENTICATION_INVALID_PASSWORD
error code - 210
-
AUTHENTICATION_PASSWORD_EXPIRED
public static final SecurityException.SecurityError AUTHENTICATION_PASSWORD_EXPIRED
error code - 211
-
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
-
WORKFLOW_ERROR
public static final WorkflowException.WorkflowError WORKFLOW_ERROR
error code - 410
-
WORKFLOW_ACTOR_REQUIRED
public static final WorkflowException.WorkflowError WORKFLOW_ACTOR_REQUIRED
error code - 411
-
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
-
INTERNAL_ERROR_OFFSET
public static final int INTERNAL_ERROR_OFFSET
- See Also:
- Constant Field Values
-
SECURITY_ERROR_OFFSET
public static final int SECURITY_ERROR_OFFSET
- See Also:
- Constant Field Values
-
CLIENT_ERROR_OFFSET
public static final int CLIENT_ERROR_OFFSET
- See Also:
- Constant Field Values
-
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 fromErrorConstantTypeand 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)
-
-