Package net.osslabz.lnd.dto
Enum Class LnrpcPaymentFailureReason
- All Implemented Interfaces:
Serializable,Comparable<LnrpcPaymentFailureReason>,Constable
- FAILURE_REASON_NONE: Payment isn't failed (yet). - FAILURE_REASON_TIMEOUT: There are more routes to try, but the payment timeout was exceeded. - FAILURE_REASON_NO_ROUTE: All possible routes were tried and failed permanently. Or were no routes to the destination at all. - FAILURE_REASON_ERROR: A non-recoverable error has occured. - FAILURE_REASON_INCORRECT_PAYMENT_DETAILS: Payment details incorrect (unknown hash, invalid amt or invalid final cltv delta) - FAILURE_REASON_INSUFFICIENT_BALANCE: Insufficient local balance.
-
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 LnrpcPaymentFailureReasongetValue()toString()static LnrpcPaymentFailureReasonReturns the enum constant of this class with the specified name.static LnrpcPaymentFailureReason[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
NONE
-
TIMEOUT
-
NO_ROUTE
-
ERROR
-
INCORRECT_PAYMENT_DETAILS
-
INSUFFICIENT_BALANCE
-
-
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<LnrpcPaymentFailureReason>
-
fromValue
-