public static enum LightningApi.Failure.FailureCode extends java.lang.Enum<LightningApi.Failure.FailureCode> implements com.google.protobuf.ProtocolMessageEnum
lnrpc.Failure.FailureCode
Enum Constant and Description |
---|
AMOUNT_BELOW_MINIMUM
AMOUNT_BELOW_MINIMUM = 11; |
CHANNEL_DISABLED
CHANNEL_DISABLED = 14; |
EXPIRY_TOO_FAR
EXPIRY_TOO_FAR = 22; |
EXPIRY_TOO_SOON
EXPIRY_TOO_SOON = 7; |
FEE_INSUFFICIENT
FEE_INSUFFICIENT = 12; |
FINAL_EXPIRY_TOO_SOON
FINAL_EXPIRY_TOO_SOON = 5; |
FINAL_INCORRECT_CLTV_EXPIRY
FINAL_INCORRECT_CLTV_EXPIRY = 3; |
FINAL_INCORRECT_HTLC_AMOUNT
FINAL_INCORRECT_HTLC_AMOUNT = 4; |
INCORRECT_CLTV_EXPIRY
INCORRECT_CLTV_EXPIRY = 13; |
INCORRECT_OR_UNKNOWN_PAYMENT_DETAILS
INCORRECT_OR_UNKNOWN_PAYMENT_DETAILS = 1; |
INCORRECT_PAYMENT_AMOUNT
INCORRECT_PAYMENT_AMOUNT = 2; |
INTERNAL_FAILURE
An internal error occurred.
|
INVALID_ONION_HMAC
INVALID_ONION_HMAC = 9; |
INVALID_ONION_KEY
INVALID_ONION_KEY = 10; |
INVALID_ONION_PAYLOAD
INVALID_ONION_PAYLOAD = 24; |
INVALID_ONION_VERSION
INVALID_ONION_VERSION = 8; |
INVALID_REALM
INVALID_REALM = 6; |
MPP_TIMEOUT
MPP_TIMEOUT = 23; |
PERMANENT_CHANNEL_FAILURE
PERMANENT_CHANNEL_FAILURE = 21; |
PERMANENT_NODE_FAILURE
PERMANENT_NODE_FAILURE = 20; |
REQUIRED_CHANNEL_FEATURE_MISSING
REQUIRED_CHANNEL_FEATURE_MISSING = 17; |
REQUIRED_NODE_FEATURE_MISSING
REQUIRED_NODE_FEATURE_MISSING = 16; |
RESERVED
The numbers assigned in this enumeration match the failure codes as
defined in BOLT #4.
|
TEMPORARY_CHANNEL_FAILURE
TEMPORARY_CHANNEL_FAILURE = 15; |
TEMPORARY_NODE_FAILURE
TEMPORARY_NODE_FAILURE = 19; |
UNKNOWN_FAILURE
The error source is known, but the failure itself couldn't be decoded.
|
UNKNOWN_NEXT_PEER
UNKNOWN_NEXT_PEER = 18; |
UNREADABLE_FAILURE
An unreadable failure result is returned if the received failure message
cannot be decrypted.
|
UNRECOGNIZED |
Modifier and Type | Field and Description |
---|---|
static int |
AMOUNT_BELOW_MINIMUM_VALUE
AMOUNT_BELOW_MINIMUM = 11; |
static int |
CHANNEL_DISABLED_VALUE
CHANNEL_DISABLED = 14; |
static int |
EXPIRY_TOO_FAR_VALUE
EXPIRY_TOO_FAR = 22; |
static int |
EXPIRY_TOO_SOON_VALUE
EXPIRY_TOO_SOON = 7; |
static int |
FEE_INSUFFICIENT_VALUE
FEE_INSUFFICIENT = 12; |
static int |
FINAL_EXPIRY_TOO_SOON_VALUE
FINAL_EXPIRY_TOO_SOON = 5; |
static int |
FINAL_INCORRECT_CLTV_EXPIRY_VALUE
FINAL_INCORRECT_CLTV_EXPIRY = 3; |
static int |
FINAL_INCORRECT_HTLC_AMOUNT_VALUE
FINAL_INCORRECT_HTLC_AMOUNT = 4; |
static int |
INCORRECT_CLTV_EXPIRY_VALUE
INCORRECT_CLTV_EXPIRY = 13; |
static int |
INCORRECT_OR_UNKNOWN_PAYMENT_DETAILS_VALUE
INCORRECT_OR_UNKNOWN_PAYMENT_DETAILS = 1; |
static int |
INCORRECT_PAYMENT_AMOUNT_VALUE
INCORRECT_PAYMENT_AMOUNT = 2; |
static int |
INTERNAL_FAILURE_VALUE
An internal error occurred.
|
static int |
INVALID_ONION_HMAC_VALUE
INVALID_ONION_HMAC = 9; |
static int |
INVALID_ONION_KEY_VALUE
INVALID_ONION_KEY = 10; |
static int |
INVALID_ONION_PAYLOAD_VALUE
INVALID_ONION_PAYLOAD = 24; |
static int |
INVALID_ONION_VERSION_VALUE
INVALID_ONION_VERSION = 8; |
static int |
INVALID_REALM_VALUE
INVALID_REALM = 6; |
static int |
MPP_TIMEOUT_VALUE
MPP_TIMEOUT = 23; |
static int |
PERMANENT_CHANNEL_FAILURE_VALUE
PERMANENT_CHANNEL_FAILURE = 21; |
static int |
PERMANENT_NODE_FAILURE_VALUE
PERMANENT_NODE_FAILURE = 20; |
static int |
REQUIRED_CHANNEL_FEATURE_MISSING_VALUE
REQUIRED_CHANNEL_FEATURE_MISSING = 17; |
static int |
REQUIRED_NODE_FEATURE_MISSING_VALUE
REQUIRED_NODE_FEATURE_MISSING = 16; |
static int |
RESERVED_VALUE
The numbers assigned in this enumeration match the failure codes as
defined in BOLT #4.
|
static int |
TEMPORARY_CHANNEL_FAILURE_VALUE
TEMPORARY_CHANNEL_FAILURE = 15; |
static int |
TEMPORARY_NODE_FAILURE_VALUE
TEMPORARY_NODE_FAILURE = 19; |
static int |
UNKNOWN_FAILURE_VALUE
The error source is known, but the failure itself couldn't be decoded.
|
static int |
UNKNOWN_NEXT_PEER_VALUE
UNKNOWN_NEXT_PEER = 18; |
static int |
UNREADABLE_FAILURE_VALUE
An unreadable failure result is returned if the received failure message
cannot be decrypted.
|
Modifier and Type | Method and Description |
---|---|
static LightningApi.Failure.FailureCode |
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.Failure.FailureCode> |
internalGetValueMap() |
static LightningApi.Failure.FailureCode |
valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) |
static LightningApi.Failure.FailureCode |
valueOf(int value)
Deprecated.
Use
forNumber(int) instead. |
static LightningApi.Failure.FailureCode |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static LightningApi.Failure.FailureCode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final LightningApi.Failure.FailureCode 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.
RESERVED = 0;
public static final LightningApi.Failure.FailureCode INCORRECT_OR_UNKNOWN_PAYMENT_DETAILS
INCORRECT_OR_UNKNOWN_PAYMENT_DETAILS = 1;
public static final LightningApi.Failure.FailureCode INCORRECT_PAYMENT_AMOUNT
INCORRECT_PAYMENT_AMOUNT = 2;
public static final LightningApi.Failure.FailureCode FINAL_INCORRECT_CLTV_EXPIRY
FINAL_INCORRECT_CLTV_EXPIRY = 3;
public static final LightningApi.Failure.FailureCode FINAL_INCORRECT_HTLC_AMOUNT
FINAL_INCORRECT_HTLC_AMOUNT = 4;
public static final LightningApi.Failure.FailureCode FINAL_EXPIRY_TOO_SOON
FINAL_EXPIRY_TOO_SOON = 5;
public static final LightningApi.Failure.FailureCode INVALID_REALM
INVALID_REALM = 6;
public static final LightningApi.Failure.FailureCode EXPIRY_TOO_SOON
EXPIRY_TOO_SOON = 7;
public static final LightningApi.Failure.FailureCode INVALID_ONION_VERSION
INVALID_ONION_VERSION = 8;
public static final LightningApi.Failure.FailureCode INVALID_ONION_HMAC
INVALID_ONION_HMAC = 9;
public static final LightningApi.Failure.FailureCode INVALID_ONION_KEY
INVALID_ONION_KEY = 10;
public static final LightningApi.Failure.FailureCode AMOUNT_BELOW_MINIMUM
AMOUNT_BELOW_MINIMUM = 11;
public static final LightningApi.Failure.FailureCode FEE_INSUFFICIENT
FEE_INSUFFICIENT = 12;
public static final LightningApi.Failure.FailureCode INCORRECT_CLTV_EXPIRY
INCORRECT_CLTV_EXPIRY = 13;
public static final LightningApi.Failure.FailureCode CHANNEL_DISABLED
CHANNEL_DISABLED = 14;
public static final LightningApi.Failure.FailureCode TEMPORARY_CHANNEL_FAILURE
TEMPORARY_CHANNEL_FAILURE = 15;
public static final LightningApi.Failure.FailureCode REQUIRED_NODE_FEATURE_MISSING
REQUIRED_NODE_FEATURE_MISSING = 16;
public static final LightningApi.Failure.FailureCode REQUIRED_CHANNEL_FEATURE_MISSING
REQUIRED_CHANNEL_FEATURE_MISSING = 17;
public static final LightningApi.Failure.FailureCode UNKNOWN_NEXT_PEER
UNKNOWN_NEXT_PEER = 18;
public static final LightningApi.Failure.FailureCode TEMPORARY_NODE_FAILURE
TEMPORARY_NODE_FAILURE = 19;
public static final LightningApi.Failure.FailureCode PERMANENT_NODE_FAILURE
PERMANENT_NODE_FAILURE = 20;
public static final LightningApi.Failure.FailureCode PERMANENT_CHANNEL_FAILURE
PERMANENT_CHANNEL_FAILURE = 21;
public static final LightningApi.Failure.FailureCode EXPIRY_TOO_FAR
EXPIRY_TOO_FAR = 22;
public static final LightningApi.Failure.FailureCode MPP_TIMEOUT
MPP_TIMEOUT = 23;
public static final LightningApi.Failure.FailureCode INVALID_ONION_PAYLOAD
INVALID_ONION_PAYLOAD = 24;
public static final LightningApi.Failure.FailureCode INTERNAL_FAILURE
An internal error occurred.
INTERNAL_FAILURE = 997;
public static final LightningApi.Failure.FailureCode UNKNOWN_FAILURE
The error source is known, but the failure itself couldn't be decoded.
UNKNOWN_FAILURE = 998;
public static final LightningApi.Failure.FailureCode UNREADABLE_FAILURE
An unreadable failure result is returned if the received failure message cannot be decrypted. In that case the error source is unknown.
UNREADABLE_FAILURE = 999;
public static final LightningApi.Failure.FailureCode UNRECOGNIZED
public static final int RESERVED_VALUE
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.
RESERVED = 0;
public static final int INCORRECT_OR_UNKNOWN_PAYMENT_DETAILS_VALUE
INCORRECT_OR_UNKNOWN_PAYMENT_DETAILS = 1;
public static final int INCORRECT_PAYMENT_AMOUNT_VALUE
INCORRECT_PAYMENT_AMOUNT = 2;
public static final int FINAL_INCORRECT_CLTV_EXPIRY_VALUE
FINAL_INCORRECT_CLTV_EXPIRY = 3;
public static final int FINAL_INCORRECT_HTLC_AMOUNT_VALUE
FINAL_INCORRECT_HTLC_AMOUNT = 4;
public static final int FINAL_EXPIRY_TOO_SOON_VALUE
FINAL_EXPIRY_TOO_SOON = 5;
public static final int INVALID_REALM_VALUE
INVALID_REALM = 6;
public static final int EXPIRY_TOO_SOON_VALUE
EXPIRY_TOO_SOON = 7;
public static final int INVALID_ONION_VERSION_VALUE
INVALID_ONION_VERSION = 8;
public static final int INVALID_ONION_HMAC_VALUE
INVALID_ONION_HMAC = 9;
public static final int INVALID_ONION_KEY_VALUE
INVALID_ONION_KEY = 10;
public static final int AMOUNT_BELOW_MINIMUM_VALUE
AMOUNT_BELOW_MINIMUM = 11;
public static final int FEE_INSUFFICIENT_VALUE
FEE_INSUFFICIENT = 12;
public static final int INCORRECT_CLTV_EXPIRY_VALUE
INCORRECT_CLTV_EXPIRY = 13;
public static final int CHANNEL_DISABLED_VALUE
CHANNEL_DISABLED = 14;
public static final int TEMPORARY_CHANNEL_FAILURE_VALUE
TEMPORARY_CHANNEL_FAILURE = 15;
public static final int REQUIRED_NODE_FEATURE_MISSING_VALUE
REQUIRED_NODE_FEATURE_MISSING = 16;
public static final int REQUIRED_CHANNEL_FEATURE_MISSING_VALUE
REQUIRED_CHANNEL_FEATURE_MISSING = 17;
public static final int UNKNOWN_NEXT_PEER_VALUE
UNKNOWN_NEXT_PEER = 18;
public static final int TEMPORARY_NODE_FAILURE_VALUE
TEMPORARY_NODE_FAILURE = 19;
public static final int PERMANENT_NODE_FAILURE_VALUE
PERMANENT_NODE_FAILURE = 20;
public static final int PERMANENT_CHANNEL_FAILURE_VALUE
PERMANENT_CHANNEL_FAILURE = 21;
public static final int EXPIRY_TOO_FAR_VALUE
EXPIRY_TOO_FAR = 22;
public static final int MPP_TIMEOUT_VALUE
MPP_TIMEOUT = 23;
public static final int INVALID_ONION_PAYLOAD_VALUE
INVALID_ONION_PAYLOAD = 24;
public static final int INTERNAL_FAILURE_VALUE
An internal error occurred.
INTERNAL_FAILURE = 997;
public static final int UNKNOWN_FAILURE_VALUE
The error source is known, but the failure itself couldn't be decoded.
UNKNOWN_FAILURE = 998;
public static final int UNREADABLE_FAILURE_VALUE
An unreadable failure result is returned if the received failure message cannot be decrypted. In that case the error source is unknown.
UNREADABLE_FAILURE = 999;
public static LightningApi.Failure.FailureCode[] values()
for (LightningApi.Failure.FailureCode c : LightningApi.Failure.FailureCode.values()) System.out.println(c);
public static LightningApi.Failure.FailureCode 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.Failure.FailureCode valueOf(int value)
forNumber(int)
instead.value
- The numeric wire value of the corresponding enum entry.public static LightningApi.Failure.FailureCode forNumber(int value)
value
- The numeric wire value of the corresponding enum entry.public static com.google.protobuf.Internal.EnumLiteMap<LightningApi.Failure.FailureCode> 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.Failure.FailureCode valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)