Package org.ldk.enums
Enum SemanticError
- java.lang.Object
-
- java.lang.Enum<SemanticError>
-
- org.ldk.enums.SemanticError
-
- All Implemented Interfaces:
Serializable
,Comparable<SemanticError>
public enum SemanticError extends Enum<SemanticError>
Errors that may occur when converting a [`RawInvoice`] to an [`Invoice`]. They relate to the requirements sections in BOLT #11
-
-
Enum Constant Summary
Enum Constants Enum Constant Description LDKSemanticError_ImpreciseAmount
The invoice's amount was not a whole number of millisatoshisLDKSemanticError_InvalidFeatures
The invoice's features are invalidLDKSemanticError_InvalidRecoveryId
The recovery id doesn't fit the signature/pub keyLDKSemanticError_InvalidSignature
The invoice's signature is invalidLDKSemanticError_MultipleDescriptions
The invoice contains multiple descriptions and/or description hashes which isn't allowedLDKSemanticError_MultiplePaymentHashes
The invoice has multiple payment hashes which isn't allowedLDKSemanticError_MultiplePaymentSecrets
The invoice contains multiple payment secretsLDKSemanticError_NoDescription
No description or description hash are part of the invoiceLDKSemanticError_NoPaymentHash
The invoice is missing the mandatory payment hashLDKSemanticError_NoPaymentSecret
The 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 SemanticError
valueOf(String name)
Returns the enum constant of this type with the specified name.static SemanticError[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
LDKSemanticError_NoPaymentHash
public static final SemanticError LDKSemanticError_NoPaymentHash
The invoice is missing the mandatory payment hash
-
LDKSemanticError_MultiplePaymentHashes
public static final SemanticError LDKSemanticError_MultiplePaymentHashes
The invoice has multiple payment hashes which isn't allowed
-
LDKSemanticError_NoDescription
public static final SemanticError LDKSemanticError_NoDescription
No description or description hash are part of the invoice
-
LDKSemanticError_MultipleDescriptions
public static final SemanticError LDKSemanticError_MultipleDescriptions
The invoice contains multiple descriptions and/or description hashes which isn't allowed
-
LDKSemanticError_NoPaymentSecret
public static final SemanticError LDKSemanticError_NoPaymentSecret
The invoice is missing the mandatory payment secret, which all modern lightning nodes should provide.
-
LDKSemanticError_MultiplePaymentSecrets
public static final SemanticError LDKSemanticError_MultiplePaymentSecrets
The invoice contains multiple payment secrets
-
LDKSemanticError_InvalidFeatures
public static final SemanticError LDKSemanticError_InvalidFeatures
The invoice's features are invalid
-
LDKSemanticError_InvalidRecoveryId
public static final SemanticError LDKSemanticError_InvalidRecoveryId
The recovery id doesn't fit the signature/pub key
-
LDKSemanticError_InvalidSignature
public static final SemanticError LDKSemanticError_InvalidSignature
The invoice's signature is invalid
-
LDKSemanticError_ImpreciseAmount
public static final SemanticError LDKSemanticError_ImpreciseAmount
The invoice's amount was not a whole number of millisatoshis
-
-
Method Detail
-
values
public static SemanticError[] 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 (SemanticError c : SemanticError.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static SemanticError 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
-
-