Package net.osslabz.lnd.dto
Enum Class FailureFailureCode
- All Implemented Interfaces:
Serializable,Comparable<FailureFailureCode>,Constable
- 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.
-
Nested Class Summary
Nested ClassesNested 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 FailureFailureCodegetValue()toString()static FailureFailureCodeReturns the enum constant of this class with the specified name.static FailureFailureCode[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
RESERVED
-
INCORRECT_OR_UNKNOWN_PAYMENT_DETAILS
-
INCORRECT_PAYMENT_AMOUNT
-
FINAL_INCORRECT_CLTV_EXPIRY
-
FINAL_INCORRECT_HTLC_AMOUNT
-
FINAL_EXPIRY_TOO_SOON
-
INVALID_REALM
-
EXPIRY_TOO_SOON
-
INVALID_ONION_VERSION
-
INVALID_ONION_HMAC
-
INVALID_ONION_KEY
-
AMOUNT_BELOW_MINIMUM
-
FEE_INSUFFICIENT
-
INCORRECT_CLTV_EXPIRY
-
CHANNEL_DISABLED
-
TEMPORARY_CHANNEL_FAILURE
-
REQUIRED_NODE_FEATURE_MISSING
-
REQUIRED_CHANNEL_FEATURE_MISSING
-
UNKNOWN_NEXT_PEER
-
TEMPORARY_NODE_FAILURE
-
PERMANENT_NODE_FAILURE
-
PERMANENT_CHANNEL_FAILURE
-
EXPIRY_TOO_FAR
-
MPP_TIMEOUT
-
INVALID_ONION_PAYLOAD
-
INTERNAL_FAILURE
-
UNKNOWN_FAILURE
-
UNREADABLE_FAILURE
-
-
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
-
getValue
-
toString
- Overrides:
toStringin classEnum<FailureFailureCode>
-
fromValue
-