Package org.ldk.enums
Enum Bolt11SemanticError
- java.lang.Object
-
- java.lang.Enum<Bolt11SemanticError>
-
- org.ldk.enums.Bolt11SemanticError
-
- All Implemented Interfaces:
Serializable,Comparable<Bolt11SemanticError>
public enum Bolt11SemanticError extends Enum<Bolt11SemanticError>
Errors that may occur when converting a [`RawBolt11Invoice`] to a [`Bolt11Invoice`]. They relate to the requirements sections in BOLT #11
-
-
Enum Constant Summary
Enum Constants Enum Constant Description LDKBolt11SemanticError_ImpreciseAmountThe invoice's amount was not a whole number of millisatoshisLDKBolt11SemanticError_InvalidFeaturesThe invoice's features are invalidLDKBolt11SemanticError_InvalidRecoveryIdThe recovery id doesn't fit the signature/pub keyLDKBolt11SemanticError_InvalidSignatureThe invoice's signature is invalidLDKBolt11SemanticError_MultipleDescriptionsThe invoice contains multiple descriptions and/or description hashes which isn't allowedLDKBolt11SemanticError_MultiplePaymentHashesThe invoice has multiple payment hashes which isn't allowedLDKBolt11SemanticError_MultiplePaymentSecretsThe invoice contains multiple payment secretsLDKBolt11SemanticError_NoDescriptionNo description or description hash are part of the invoiceLDKBolt11SemanticError_NoPaymentHashThe invoice is missing the mandatory payment hashLDKBolt11SemanticError_NoPaymentSecretThe invoice is missing the mandatory payment secret, which all modern lightning nodes should provide.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Bolt11SemanticErrorvalueOf(String name)Returns the enum constant of this type with the specified name.static Bolt11SemanticError[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
LDKBolt11SemanticError_NoPaymentHash
public static final Bolt11SemanticError LDKBolt11SemanticError_NoPaymentHash
The invoice is missing the mandatory payment hash
-
LDKBolt11SemanticError_MultiplePaymentHashes
public static final Bolt11SemanticError LDKBolt11SemanticError_MultiplePaymentHashes
The invoice has multiple payment hashes which isn't allowed
-
LDKBolt11SemanticError_NoDescription
public static final Bolt11SemanticError LDKBolt11SemanticError_NoDescription
No description or description hash are part of the invoice
-
LDKBolt11SemanticError_MultipleDescriptions
public static final Bolt11SemanticError LDKBolt11SemanticError_MultipleDescriptions
The invoice contains multiple descriptions and/or description hashes which isn't allowed
-
LDKBolt11SemanticError_NoPaymentSecret
public static final Bolt11SemanticError LDKBolt11SemanticError_NoPaymentSecret
The invoice is missing the mandatory payment secret, which all modern lightning nodes should provide.
-
LDKBolt11SemanticError_MultiplePaymentSecrets
public static final Bolt11SemanticError LDKBolt11SemanticError_MultiplePaymentSecrets
The invoice contains multiple payment secrets
-
LDKBolt11SemanticError_InvalidFeatures
public static final Bolt11SemanticError LDKBolt11SemanticError_InvalidFeatures
The invoice's features are invalid
-
LDKBolt11SemanticError_InvalidRecoveryId
public static final Bolt11SemanticError LDKBolt11SemanticError_InvalidRecoveryId
The recovery id doesn't fit the signature/pub key
-
LDKBolt11SemanticError_InvalidSignature
public static final Bolt11SemanticError LDKBolt11SemanticError_InvalidSignature
The invoice's signature is invalid
-
LDKBolt11SemanticError_ImpreciseAmount
public static final Bolt11SemanticError LDKBolt11SemanticError_ImpreciseAmount
The invoice's amount was not a whole number of millisatoshis
-
-
Method Detail
-
values
public static Bolt11SemanticError[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (Bolt11SemanticError c : Bolt11SemanticError.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static Bolt11SemanticError valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type has no constant with the specified nameNullPointerException- if the argument is null
-
-