Enum Class SCMPError

java.lang.Object
java.lang.Enum<SCMPError>
org.serviceconnector.scmp.SCMPError
All Implemented Interfaces:
Serializable, Comparable<SCMPError>, Constable, IReversibleEnum<String,SCMPError>

public enum SCMPError extends Enum<SCMPError> implements IReversibleEnum<String,SCMPError>
The Enum SCMPError. Defines possible errors in SCM.
Author:
JTraber
  • Enum Constant Details

    • UNDEFINED

      public static final SCMPError UNDEFINED
      The UNDEFINED Error.
    • BAD_REQUEST

      public static final SCMPError BAD_REQUEST
      The bad request.
    • SERVICE_NOT_FOUND

      public static final SCMPError SERVICE_NOT_FOUND
      The SERVICE_NOT_FOUND.
    • SESSION_NOT_FOUND

      public static final SCMPError SESSION_NOT_FOUND
      The SESSION_NOT_FOUND.
    • SUBSCRIPTION_NOT_FOUND

      public static final SCMPError SUBSCRIPTION_NOT_FOUND
      The SUBCRIPTION_NOT_FOUND.
    • SERVER_NOT_FOUND

      public static final SCMPError SERVER_NOT_FOUND
      The SERVER_NOT_FOUND.
    • REQUEST_TIMEOUT

      public static final SCMPError REQUEST_TIMEOUT
      The REQUEST_TIMEOUT.
    • REQUEST_WAIT_ABORT

      public static final SCMPError REQUEST_WAIT_ABORT
      The REQUEST_ABORT.
    • BROKEN_SESSION

      public static final SCMPError BROKEN_SESSION
      The BROKEN_SESSION.
    • BROKEN_SUBSCRIPTION

      public static final SCMPError BROKEN_SUBSCRIPTION
      The BROKEN_SUBSCRIPTION.
    • HV_ERROR

      public static final SCMPError HV_ERROR
      420-470 Validation errors. (HV = Header Validation)
    • HV_WRONG_SC_VERSION_FORMAT

      public static final SCMPError HV_WRONG_SC_VERSION_FORMAT
      The HV_WRONG_SC_VERSION_FORMAT.
    • HV_WRONG_SC_RELEASE_NR

      public static final SCMPError HV_WRONG_SC_RELEASE_NR
      The HV_WRONG_SC_RELEASE_NR.
    • HV_WRONG_SC_VERSION_NR

      public static final SCMPError HV_WRONG_SC_VERSION_NR
      The HV_WRONG_SC_VERSION_NR.
    • HV_WRONG_SC_REVISION_NR

      public static final SCMPError HV_WRONG_SC_REVISION_NR
      The HV_WRONG_SC_REVISION_NR.
    • HV_WRONG_SCMP_VERSION_FORMAT

      public static final SCMPError HV_WRONG_SCMP_VERSION_FORMAT
      The HV_WRONG_SCMP_VERSION_FORMAT.
    • HV_WRONG_SCMP_RELEASE_NR

      public static final SCMPError HV_WRONG_SCMP_RELEASE_NR
      The HV_WRONG_SCMP_RELEASE_NR.
    • HV_WRONG_SCMP_VERSION_NR

      public static final SCMPError HV_WRONG_SCMP_VERSION_NR
      The HV_WRONG_SCMP_VERSION_NR.
    • HV_WRONG_LDT

      public static final SCMPError HV_WRONG_LDT
      The HV_WRONG_LDT.
    • HV_WRONG_CED

      public static final SCMPError HV_WRONG_CED
      The HV_WRONG_CED.
    • HV_WRONG_IPLIST

      public static final SCMPError HV_WRONG_IPLIST
      The HV_WRONG_IPLIST_FORMAT.
    • HV_WRONG_MAX_SESSIONS

      public static final SCMPError HV_WRONG_MAX_SESSIONS
      The HV_WRONG_MAX_SESSIONS.
    • HV_WRONG_MAX_CONNECTIONS

      public static final SCMPError HV_WRONG_MAX_CONNECTIONS
      The HV_WRONG_MAX_CONNECTIONS.
    • HV_WRONG_OPERATION_TIMEOUT

      public static final SCMPError HV_WRONG_OPERATION_TIMEOUT
      The HV_WRONG_OPERATION_TIMEOUT.
    • HV_WRONG_ECHO_TIMEOUT

      public static final SCMPError HV_WRONG_ECHO_TIMEOUT
      The HV_WRONG_ECHO_TIMEOUT.
    • HV_WRONG_ECHO_INTERVAL

      public static final SCMPError HV_WRONG_ECHO_INTERVAL
      The HV_WRONG_ECHO_INTERVAL.
    • HV_WRONG_PORTNR

      public static final SCMPError HV_WRONG_PORTNR
      The HV_WRONG_PORTNR.
    • HV_WRONG_KEEPALIVE_INTERVAL

      public static final SCMPError HV_WRONG_KEEPALIVE_INTERVAL
      The HV_WRONG_KEEPALIVE_INTERVAL.
    • HV_WRONG_KEEPALIVE_TIMEOUT

      public static final SCMPError HV_WRONG_KEEPALIVE_TIMEOUT
      The HV_WRONG_KEEPALIVE_TIMEOUT.
    • HV_WRONG_NODATA_INTERVAL

      public static final SCMPError HV_WRONG_NODATA_INTERVAL
      The HV_WRONG_NODATA_INTERVAL.
    • HV_WRONG_MASK

      public static final SCMPError HV_WRONG_MASK
      The HV_WRONG_MASK.
    • HV_WRONG_SESSION_INFO

      public static final SCMPError HV_WRONG_SESSION_INFO
      The HV_WRONG_SESSION_INFO.
    • HV_WRONG_SERVICE_NAME

      public static final SCMPError HV_WRONG_SERVICE_NAME
      The HV_WRONG_SERVICE_NAME.
    • HV_WRONG_MESSAGE_INFO

      public static final SCMPError HV_WRONG_MESSAGE_INFO
      The HV_WRONG_MESSAGE_INFO.
    • HV_WRONG_MESSAGE_SEQUENCE_NR

      public static final SCMPError HV_WRONG_MESSAGE_SEQUENCE_NR
      The HV_WRONG_MESSAGE_SEQUENCE_NR.
    • HV_WRONG_REMOTE_FILE_NAME

      public static final SCMPError HV_WRONG_REMOTE_FILE_NAME
      The HV_WRONG_REMOTE_FILE_NAME.
    • HV_WRONG_SESSION_ID

      public static final SCMPError HV_WRONG_SESSION_ID
      The HV_WRONG_MESSAGE_ID.
    • HV_WRONG_SC_ERROR_CODE

      public static final SCMPError HV_WRONG_SC_ERROR_CODE
      The HV_WRONG_SC_ERROR_CODE.
    • HV_WRONG_SC_ERROR_TEXT

      public static final SCMPError HV_WRONG_SC_ERROR_TEXT
      The HV_WRONG_SC_ERROR_TEXT.
    • HV_WRONG_APP_ERROR_CODE

      public static final SCMPError HV_WRONG_APP_ERROR_CODE
      The HV_WRONG_APP_ERROR_CODE.
    • HV_WRONG_APP_ERROR_TEXT

      public static final SCMPError HV_WRONG_APP_ERROR_TEXT
      The HV_WRONG_APP_ERROR_TEXT.
    • HV_WRONG_RECEIVE_PUBLICAION_TIMEOUT

      public static final SCMPError HV_WRONG_RECEIVE_PUBLICAION_TIMEOUT
      The HV_WRONG_RECEIVE_PUBLICAION_TIMEOUT.
    • HV_WRONG_CHECK_REGISTRATION_INTERVAL

      public static final SCMPError HV_WRONG_CHECK_REGISTRATION_INTERVAL
      The HV_WRONG_CHECK_REGISTRATION_INTERVAL.
    • HV_WRONG_CACHING_METHOD_VALUE

      public static final SCMPError HV_WRONG_CACHING_METHOD_VALUE
      The HV_WRONG_CACHING_METHOD_VALUE.
    • V_WRONG_CONFIGURATION_FILE

      public static final SCMPError V_WRONG_CONFIGURATION_FILE
      The V_WRONG_CONFIGURATION_FILE_FORMAT.
    • V_WRONG_INSPECT_COMMAND

      public static final SCMPError V_WRONG_INSPECT_COMMAND
      The V_WRONG_INSPECT_COMMAND.
    • V_WRONG_MANAGE_COMMAND

      public static final SCMPError V_WRONG_MANAGE_COMMAND
      The V_WRONG_MANAGE_COMMAND.
    • V_WRONG_SERVICE_TYPE

      public static final SCMPError V_WRONG_SERVICE_TYPE
      The V_SERVICE_TYPE.
    • V_WRONG_SERVER_TYPE

      public static final SCMPError V_WRONG_SERVER_TYPE
      The V_SERVER_TYPE.
    • SERVER_ERROR

      public static final SCMPError SERVER_ERROR
      The SERVER_ERROR.
    • SERVICE_DISABLED

      public static final SCMPError SERVICE_DISABLED
      The service is DISABLED.
    • OPERATION_TIMEOUT

      public static final SCMPError OPERATION_TIMEOUT
      The OPERATION_TIMEOUT_EXPIRED.
    • FILE_UPLOAD_FAILED

      public static final SCMPError FILE_UPLOAD_FAILED
      The UPLOAD_FILE_FAILED.
    • FILE_DOWNLOAD_FAILED

      public static final SCMPError FILE_DOWNLOAD_FAILED
      The DOWNLOAD_FILE_FAILED.
    • GET_FILE_LIST_FAILED

      public static final SCMPError GET_FILE_LIST_FAILED
      The GET_FILE_LIST.
    • SC_ERROR

      public static final SCMPError SC_ERROR
      The SC_ERROR.
    • NO_SERVER

      public static final SCMPError NO_SERVER
      The NO_SERVER.
    • NO_FREE_SERVER

      public static final SCMPError NO_FREE_SERVER
      The NO_FREE_SERVER.
    • NO_FREE_CONNECTION

      public static final SCMPError NO_FREE_CONNECTION
      The NO_FREE_CONNECTION.
    • SERVER_ALREADY_REGISTERED

      public static final SCMPError SERVER_ALREADY_REGISTERED
      The SERVER_ALREADY_REGISTERED for this service.
    • FRAME_DECODER

      public static final SCMPError FRAME_DECODER
      The FRAME_DECODER.
    • SESSION_ABORT

      public static final SCMPError SESSION_ABORT
      The SESSION_ABORT.
    • CONNECTION_EXCEPTION

      public static final SCMPError CONNECTION_EXCEPTION
      The CONNECTION_EXCEPTION.
    • CACHE_ERROR

      public static final SCMPError CACHE_ERROR
      The CACHE_ERROR.
    • CACHE_LOADING

      public static final SCMPError CACHE_LOADING
      The CACHE_LOADING.
    • PARALLEL_REQUEST

      public static final SCMPError PARALLEL_REQUEST
      The PARALLEL_CLIENT_REQUEST_REJECTED.
  • Method Details

    • values

      public static SCMPError[] 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

      public static SCMPError valueOf(String name)
      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 name
      NullPointerException - if the argument is null
    • getErrorCode

      public int getErrorCode()
      Gets the error code.
      Returns:
      the error code
    • getErrorText

      public String getErrorText()
      Gets the error text.
      Returns:
      the error text
    • getErrorText

      public String getErrorText(String additionalInfo)
      Gets the error text plus additional info.
      Parameters:
      additionalInfo - the additional info
      Returns:
      error text as string
    • getValue

      public String getValue()
      Return the value/code of the enum constant.
      Specified by:
      getValue in interface IReversibleEnum<String,SCMPError>
      Returns:
      value
    • reverse

      public SCMPError reverse(String code)
      Get the Enum constant by looking up the code in the reverse enum map. *
      Specified by:
      reverse in interface IReversibleEnum<String,SCMPError>
      Parameters:
      code - the code
      Returns:
      V - The enum constant
    • getSCMPErrorByCode

      public static SCMPError getSCMPErrorByCode(String errorCode)
      Gets the SCMP error by code.
      Parameters:
      errorCode - the error code
      Returns:
      the SCMP error by code