Package org.serviceconnector.scmp
Enum Class SCMPError
- All Implemented Interfaces:
Serializable,Comparable<SCMPError>,Constable,IReversibleEnum<String,SCMPError>
The Enum SCMPError. Defines possible errors in SCM.
- Author:
- JTraber
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionThe bad request.The BROKEN_SESSION.The BROKEN_SUBSCRIPTION.The CACHE_ERROR.The CACHE_LOADING.The CONNECTION_EXCEPTION.The DOWNLOAD_FILE_FAILED.The UPLOAD_FILE_FAILED.The FRAME_DECODER.The GET_FILE_LIST.420-470 Validation errors.The HV_WRONG_APP_ERROR_CODE.The HV_WRONG_APP_ERROR_TEXT.The HV_WRONG_CACHING_METHOD_VALUE.The HV_WRONG_CED.The HV_WRONG_CHECK_REGISTRATION_INTERVAL.The HV_WRONG_ECHO_INTERVAL.The HV_WRONG_ECHO_TIMEOUT.The HV_WRONG_IPLIST_FORMAT.The HV_WRONG_KEEPALIVE_INTERVAL.The HV_WRONG_KEEPALIVE_TIMEOUT.The HV_WRONG_LDT.The HV_WRONG_MASK.The HV_WRONG_MAX_CONNECTIONS.The HV_WRONG_MAX_SESSIONS.The HV_WRONG_MESSAGE_INFO.The HV_WRONG_MESSAGE_SEQUENCE_NR.The HV_WRONG_NODATA_INTERVAL.The HV_WRONG_OPERATION_TIMEOUT.The HV_WRONG_PORTNR.The HV_WRONG_RECEIVE_PUBLICAION_TIMEOUT.The HV_WRONG_REMOTE_FILE_NAME.The HV_WRONG_SC_ERROR_CODE.The HV_WRONG_SC_ERROR_TEXT.The HV_WRONG_SC_RELEASE_NR.The HV_WRONG_SC_REVISION_NR.The HV_WRONG_SC_VERSION_FORMAT.The HV_WRONG_SC_VERSION_NR.The HV_WRONG_SCMP_RELEASE_NR.The HV_WRONG_SCMP_VERSION_FORMAT.The HV_WRONG_SCMP_VERSION_NR.The HV_WRONG_SERVICE_NAME.The HV_WRONG_MESSAGE_ID.The HV_WRONG_SESSION_INFO.The NO_FREE_CONNECTION.The NO_FREE_SERVER.The NO_SERVER.The OPERATION_TIMEOUT_EXPIRED.The PARALLEL_CLIENT_REQUEST_REJECTED.The REQUEST_TIMEOUT.The REQUEST_ABORT.The SC_ERROR.The SERVER_ALREADY_REGISTERED for this service.The SERVER_ERROR.The SERVER_NOT_FOUND.The service is DISABLED.The SERVICE_NOT_FOUND.The SESSION_ABORT.The SESSION_NOT_FOUND.The SUBCRIPTION_NOT_FOUND.The UNDEFINED Error.The V_WRONG_CONFIGURATION_FILE_FORMAT.The V_WRONG_INSPECT_COMMAND.The V_WRONG_MANAGE_COMMAND.The V_SERVER_TYPE.The V_SERVICE_TYPE. -
Method Summary
Modifier and TypeMethodDescriptionintGets the error code.Gets the error text.getErrorText(String additionalInfo) Gets the error text plus additional info.static SCMPErrorgetSCMPErrorByCode(String errorCode) Gets the SCMP error by code.getValue()Return the value/code of the enum constant.Get theEnumconstant by looking up the code in the reverse enum mapstatic SCMPErrorReturns the enum constant of this class with the specified name.static SCMPError[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
UNDEFINED
The UNDEFINED Error. -
BAD_REQUEST
The bad request. -
SERVICE_NOT_FOUND
The SERVICE_NOT_FOUND. -
SESSION_NOT_FOUND
The SESSION_NOT_FOUND. -
SUBSCRIPTION_NOT_FOUND
The SUBCRIPTION_NOT_FOUND. -
SERVER_NOT_FOUND
The SERVER_NOT_FOUND. -
REQUEST_TIMEOUT
The REQUEST_TIMEOUT. -
REQUEST_WAIT_ABORT
The REQUEST_ABORT. -
BROKEN_SESSION
The BROKEN_SESSION. -
BROKEN_SUBSCRIPTION
The BROKEN_SUBSCRIPTION. -
HV_ERROR
420-470 Validation errors. (HV = Header Validation) -
HV_WRONG_SC_VERSION_FORMAT
The HV_WRONG_SC_VERSION_FORMAT. -
HV_WRONG_SC_RELEASE_NR
The HV_WRONG_SC_RELEASE_NR. -
HV_WRONG_SC_VERSION_NR
The HV_WRONG_SC_VERSION_NR. -
HV_WRONG_SC_REVISION_NR
The HV_WRONG_SC_REVISION_NR. -
HV_WRONG_SCMP_VERSION_FORMAT
The HV_WRONG_SCMP_VERSION_FORMAT. -
HV_WRONG_SCMP_RELEASE_NR
The HV_WRONG_SCMP_RELEASE_NR. -
HV_WRONG_SCMP_VERSION_NR
The HV_WRONG_SCMP_VERSION_NR. -
HV_WRONG_LDT
The HV_WRONG_LDT. -
HV_WRONG_CED
The HV_WRONG_CED. -
HV_WRONG_IPLIST
The HV_WRONG_IPLIST_FORMAT. -
HV_WRONG_MAX_SESSIONS
The HV_WRONG_MAX_SESSIONS. -
HV_WRONG_MAX_CONNECTIONS
The HV_WRONG_MAX_CONNECTIONS. -
HV_WRONG_OPERATION_TIMEOUT
The HV_WRONG_OPERATION_TIMEOUT. -
HV_WRONG_ECHO_TIMEOUT
The HV_WRONG_ECHO_TIMEOUT. -
HV_WRONG_ECHO_INTERVAL
The HV_WRONG_ECHO_INTERVAL. -
HV_WRONG_PORTNR
The HV_WRONG_PORTNR. -
HV_WRONG_KEEPALIVE_INTERVAL
The HV_WRONG_KEEPALIVE_INTERVAL. -
HV_WRONG_KEEPALIVE_TIMEOUT
The HV_WRONG_KEEPALIVE_TIMEOUT. -
HV_WRONG_NODATA_INTERVAL
The HV_WRONG_NODATA_INTERVAL. -
HV_WRONG_MASK
The HV_WRONG_MASK. -
HV_WRONG_SESSION_INFO
The HV_WRONG_SESSION_INFO. -
HV_WRONG_SERVICE_NAME
The HV_WRONG_SERVICE_NAME. -
HV_WRONG_MESSAGE_INFO
The HV_WRONG_MESSAGE_INFO. -
HV_WRONG_MESSAGE_SEQUENCE_NR
The HV_WRONG_MESSAGE_SEQUENCE_NR. -
HV_WRONG_REMOTE_FILE_NAME
The HV_WRONG_REMOTE_FILE_NAME. -
HV_WRONG_SESSION_ID
The HV_WRONG_MESSAGE_ID. -
HV_WRONG_SC_ERROR_CODE
The HV_WRONG_SC_ERROR_CODE. -
HV_WRONG_SC_ERROR_TEXT
The HV_WRONG_SC_ERROR_TEXT. -
HV_WRONG_APP_ERROR_CODE
The HV_WRONG_APP_ERROR_CODE. -
HV_WRONG_APP_ERROR_TEXT
The HV_WRONG_APP_ERROR_TEXT. -
HV_WRONG_RECEIVE_PUBLICAION_TIMEOUT
The HV_WRONG_RECEIVE_PUBLICAION_TIMEOUT. -
HV_WRONG_CHECK_REGISTRATION_INTERVAL
The HV_WRONG_CHECK_REGISTRATION_INTERVAL. -
HV_WRONG_CACHING_METHOD_VALUE
The HV_WRONG_CACHING_METHOD_VALUE. -
V_WRONG_CONFIGURATION_FILE
The V_WRONG_CONFIGURATION_FILE_FORMAT. -
V_WRONG_INSPECT_COMMAND
The V_WRONG_INSPECT_COMMAND. -
V_WRONG_MANAGE_COMMAND
The V_WRONG_MANAGE_COMMAND. -
V_WRONG_SERVICE_TYPE
The V_SERVICE_TYPE. -
V_WRONG_SERVER_TYPE
The V_SERVER_TYPE. -
SERVER_ERROR
The SERVER_ERROR. -
SERVICE_DISABLED
The service is DISABLED. -
OPERATION_TIMEOUT
The OPERATION_TIMEOUT_EXPIRED. -
FILE_UPLOAD_FAILED
The UPLOAD_FILE_FAILED. -
FILE_DOWNLOAD_FAILED
The DOWNLOAD_FILE_FAILED. -
GET_FILE_LIST_FAILED
The GET_FILE_LIST. -
SC_ERROR
The SC_ERROR. -
NO_SERVER
The NO_SERVER. -
NO_FREE_SERVER
The NO_FREE_SERVER. -
NO_FREE_CONNECTION
The NO_FREE_CONNECTION. -
SERVER_ALREADY_REGISTERED
The SERVER_ALREADY_REGISTERED for this service. -
FRAME_DECODER
The FRAME_DECODER. -
SESSION_ABORT
The SESSION_ABORT. -
CONNECTION_EXCEPTION
The CONNECTION_EXCEPTION. -
CACHE_ERROR
The CACHE_ERROR. -
CACHE_LOADING
The CACHE_LOADING. -
PARALLEL_REQUEST
The PARALLEL_CLIENT_REQUEST_REJECTED.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-
getErrorCode
public int getErrorCode()Gets the error code.- Returns:
- the error code
-
getErrorText
Gets the error text.- Returns:
- the error text
-
getErrorText
Gets the error text plus additional info.- Parameters:
additionalInfo- the additional info- Returns:
- error text as string
-
getValue
Return the value/code of the enum constant.- Specified by:
getValuein interfaceIReversibleEnum<String,SCMPError> - Returns:
- value
-
reverse
Get theEnumconstant by looking up the code in the reverse enum map. *- Specified by:
reversein interfaceIReversibleEnum<String,SCMPError> - Parameters:
code- the code- Returns:
- V - The enum constant
-
getSCMPErrorByCode
Gets the SCMP error by code.- Parameters:
errorCode- the error code- Returns:
- the SCMP error by code
-