Package ca.uhn.hl7v2
Enum Class ErrorCode
- All Implemented Interfaces:
Serializable,Comparable<ErrorCode>,Constable
Error code table
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescription -
Method Summary
Modifier and TypeMethodDescriptionstatic Stringstatic ErrorCodeerrorCodeFor(int errCode) Returns the ErrorCode for the given integerintgetCode()static ErrorCodeReturns the enum constant of this class with the specified name.static ErrorCode[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
MESSAGE_ACCEPTED
-
SEGMENT_SEQUENCE_ERROR
-
REQUIRED_FIELD_MISSING
-
DATA_TYPE_ERROR
-
TABLE_VALUE_NOT_FOUND
-
UNSUPPORTED_MESSAGE_TYPE
-
UNSUPPORTED_EVENT_CODE
-
UNSUPPORTED_PROCESSING_ID
-
UNSUPPORTED_VERSION_ID
-
UNKNOWN_KEY_IDENTIFIER
-
DUPLICATE_KEY_IDENTIFIER
-
APPLICATION_RECORD_LOCKED
-
APPLICATION_INTERNAL_ERROR
-
-
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
-
getCode
- Returns:
- the integer error code
-
getMessage
- Returns:
- the error code message
-
errorCodeFor
Returns the ErrorCode for the given integer- Parameters:
errCode- integer error code- Returns:
- ErrorCode
-
codeTable
- Returns:
- the HL7 table number
-