Enum Class FailureFailureCode

java.lang.Object
java.lang.Enum<FailureFailureCode>
net.osslabz.lnd.dto.FailureFailureCode
All Implemented Interfaces:
Serializable, Comparable<FailureFailureCode>, Constable

public enum FailureFailureCode extends Enum<FailureFailureCode>
- RESERVED: The numbers assigned in this enumeration match the failure codes as defined in BOLT #4. Because protobuf 3 requires enums to start with 0, a RESERVED value is added. - INTERNAL_FAILURE: An internal error occurred. - UNKNOWN_FAILURE: The error source is known, but the failure itself couldn't be decoded. - UNREADABLE_FAILURE: An unreadable failure result is returned if the received failure message cannot be decrypted. In that case the error source is unknown.
  • Enum Constant Details

  • Method Details

    • values

      public static FailureFailureCode[] 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 FailureFailureCode 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
    • getValue

      public String getValue()
    • toString

      public String toString()
      Overrides:
      toString in class Enum<FailureFailureCode>
    • fromValue

      public static FailureFailureCode fromValue(String value)