public static enum LightningApi.PaymentFailureReason extends java.lang.Enum<LightningApi.PaymentFailureReason> implements com.google.protobuf.ProtocolMessageEnum
lnrpc.PaymentFailureReason
Enum Constant and Description |
---|
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.
|
FAILURE_REASON_NO_ROUTE
All possible routes were tried and failed permanently.
|
FAILURE_REASON_NONE
Payment isn't failed (yet).
|
FAILURE_REASON_TIMEOUT
There are more routes to try, but the payment timeout was exceeded.
|
UNRECOGNIZED |
Modifier and Type | Field and Description |
---|---|
static int |
FAILURE_REASON_ERROR_VALUE
A non-recoverable error has occured.
|
static int |
FAILURE_REASON_INCORRECT_PAYMENT_DETAILS_VALUE
Payment details incorrect (unknown hash, invalid amt or
invalid final cltv delta)
|
static int |
FAILURE_REASON_INSUFFICIENT_BALANCE_VALUE
Insufficient local balance.
|
static int |
FAILURE_REASON_NO_ROUTE_VALUE
All possible routes were tried and failed permanently.
|
static int |
FAILURE_REASON_NONE_VALUE
Payment isn't failed (yet).
|
static int |
FAILURE_REASON_TIMEOUT_VALUE
There are more routes to try, but the payment timeout was exceeded.
|
Modifier and Type | Method and Description |
---|---|
static LightningApi.PaymentFailureReason |
forNumber(int value) |
static com.google.protobuf.Descriptors.EnumDescriptor |
getDescriptor() |
com.google.protobuf.Descriptors.EnumDescriptor |
getDescriptorForType() |
int |
getNumber() |
com.google.protobuf.Descriptors.EnumValueDescriptor |
getValueDescriptor() |
static com.google.protobuf.Internal.EnumLiteMap<LightningApi.PaymentFailureReason> |
internalGetValueMap() |
static LightningApi.PaymentFailureReason |
valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) |
static LightningApi.PaymentFailureReason |
valueOf(int value)
Deprecated.
Use
forNumber(int) instead. |
static LightningApi.PaymentFailureReason |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static LightningApi.PaymentFailureReason[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final LightningApi.PaymentFailureReason FAILURE_REASON_NONE
Payment isn't failed (yet).
FAILURE_REASON_NONE = 0;
public static final LightningApi.PaymentFailureReason FAILURE_REASON_TIMEOUT
There are more routes to try, but the payment timeout was exceeded.
FAILURE_REASON_TIMEOUT = 1;
public static final LightningApi.PaymentFailureReason FAILURE_REASON_NO_ROUTE
All possible routes were tried and failed permanently. Or were no routes to the destination at all.
FAILURE_REASON_NO_ROUTE = 2;
public static final LightningApi.PaymentFailureReason FAILURE_REASON_ERROR
A non-recoverable error has occured.
FAILURE_REASON_ERROR = 3;
public static final LightningApi.PaymentFailureReason FAILURE_REASON_INCORRECT_PAYMENT_DETAILS
Payment details incorrect (unknown hash, invalid amt or invalid final cltv delta)
FAILURE_REASON_INCORRECT_PAYMENT_DETAILS = 4;
public static final LightningApi.PaymentFailureReason FAILURE_REASON_INSUFFICIENT_BALANCE
Insufficient local balance.
FAILURE_REASON_INSUFFICIENT_BALANCE = 5;
public static final LightningApi.PaymentFailureReason UNRECOGNIZED
public static final int FAILURE_REASON_NONE_VALUE
Payment isn't failed (yet).
FAILURE_REASON_NONE = 0;
public static final int FAILURE_REASON_TIMEOUT_VALUE
There are more routes to try, but the payment timeout was exceeded.
FAILURE_REASON_TIMEOUT = 1;
public static final int FAILURE_REASON_NO_ROUTE_VALUE
All possible routes were tried and failed permanently. Or were no routes to the destination at all.
FAILURE_REASON_NO_ROUTE = 2;
public static final int FAILURE_REASON_ERROR_VALUE
A non-recoverable error has occured.
FAILURE_REASON_ERROR = 3;
public static final int FAILURE_REASON_INCORRECT_PAYMENT_DETAILS_VALUE
Payment details incorrect (unknown hash, invalid amt or invalid final cltv delta)
FAILURE_REASON_INCORRECT_PAYMENT_DETAILS = 4;
public static final int FAILURE_REASON_INSUFFICIENT_BALANCE_VALUE
Insufficient local balance.
FAILURE_REASON_INSUFFICIENT_BALANCE = 5;
public static LightningApi.PaymentFailureReason[] values()
for (LightningApi.PaymentFailureReason c : LightningApi.PaymentFailureReason.values()) System.out.println(c);
public static LightningApi.PaymentFailureReason valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic final int getNumber()
getNumber
in interface com.google.protobuf.Internal.EnumLite
getNumber
in interface com.google.protobuf.ProtocolMessageEnum
@Deprecated public static LightningApi.PaymentFailureReason valueOf(int value)
forNumber(int)
instead.value
- The numeric wire value of the corresponding enum entry.public static LightningApi.PaymentFailureReason forNumber(int value)
value
- The numeric wire value of the corresponding enum entry.public static com.google.protobuf.Internal.EnumLiteMap<LightningApi.PaymentFailureReason> internalGetValueMap()
public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor()
getValueDescriptor
in interface com.google.protobuf.ProtocolMessageEnum
public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType()
getDescriptorForType
in interface com.google.protobuf.ProtocolMessageEnum
public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor()
public static LightningApi.PaymentFailureReason valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)