Enum Class MessageErrorIndicator.ErrorCode
- All Implemented Interfaces:
Serializable, Comparable<MessageErrorIndicator.ErrorCode>, Constable
- Enclosing class:
MessageErrorIndicator
Standard message error codes defined by ISO 8583:2023, Table D.15.
Codes 0014–3999 are reserved for ISO use; 4000–5999 for national use; 6000–9999 for private use.
-
Nested Class Summary
Nested classes/interfaces inherited from class Enum
Enum.EnumDesc<E> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionAccount identifier has a format error.Amount field has a format error.Customer vendor format error.Date field has a format error.Other format error.Other inconsistent data.Data does not match the original request.Data inconsistent with POS data code.Data element length is invalid.Data element contains an invalid value.Name field has a format error.Recurring data error.Required data element is missing. -
Method Summary
Modifier and TypeMethodDescriptionintcode()Returns the 4-digit numeric code as carried on the wire.Returns the error code as a 4-character left-zero-padded ASCII string.of(int code) Resolves anMessageErrorIndicator.ErrorCodefrom its numeric value.Returns the enum constant of this class with the specified name.static MessageErrorIndicator.ErrorCode[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
REQUIRED_MISSING
Required data element is missing. -
INVALID_LENGTH
Data element length is invalid. -
INVALID_VALUE
Data element contains an invalid value. -
AMOUNT_FORMAT
Amount field has a format error. -
DATE_FORMAT
Date field has a format error. -
ACCOUNT_FORMAT
Account identifier has a format error. -
NAME_FORMAT
Name field has a format error. -
FORMAT_OTHER
Other format error. -
INCONSISTENT_WITH_POS_CODE
Data inconsistent with POS data code. -
INCONSISTENT_WITH_ORIGINAL
Data does not match the original request. -
INCONSISTENT_OTHER
Other inconsistent data. -
RECURRING_DATA
Recurring data error. -
CUSTOMER_VENDOR_FORMAT
Customer vendor format 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
-
code
-
codeString
Returns the error code as a 4-character left-zero-padded ASCII string.- Returns:
- wire-format code string
-
of
Resolves anMessageErrorIndicator.ErrorCodefrom its numeric value.- Parameters:
code- numeric code- Returns:
- matching constant or
nullwhen not in the ISO-defined range
-