Enum Class MessageErrorIndicator.Severity

java.lang.Object
java.lang.Enum<MessageErrorIndicator.Severity>
org.jpos.iso.MessageErrorIndicator.Severity
All Implemented Interfaces:
Serializable, Comparable<MessageErrorIndicator.Severity>, Constable
Enclosing class:
MessageErrorIndicator

Error severity carried in positions 1–2 of each error set.
  • Enum Constant Details

  • 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 name
      NullPointerException - if the argument is null
    • value

      public int value()
      Returns the 2-digit numeric value as carried on the wire.
      Returns:
      numeric severity value
    • of

      public static MessageErrorIndicator.Severity of(int value)
      Resolves a MessageErrorIndicator.Severity from its numeric value.
      Parameters:
      value - 0 or 1
      Returns:
      matching constant, defaulting to REJECTED for unknown values