Package org.ldk.enums
Enum Bolt12SemanticError
- java.lang.Object
-
- java.lang.Enum<Bolt12SemanticError>
-
- org.ldk.enums.Bolt12SemanticError
-
- All Implemented Interfaces:
Serializable,Comparable<Bolt12SemanticError>
public enum Bolt12SemanticError extends Enum<Bolt12SemanticError>
Error when interpreting a TLV stream as a specific type.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description LDKBolt12SemanticError_AlreadyExpiredThe current [`std::time::SystemTime`] is past the offer or invoice's expiration.LDKBolt12SemanticError_InsufficientAmountAn amount was provided but was not sufficient in value.LDKBolt12SemanticError_InvalidAmountThe amount exceeded the total bitcoin supply.LDKBolt12SemanticError_InvalidMetadataMetadata could not be used to verify the offers message.LDKBolt12SemanticError_InvalidPayInfoThe blinded payinfo given does not match the number of blinded path hops.LDKBolt12SemanticError_InvalidQuantityAn unsupported quantity was provided.LDKBolt12SemanticError_InvalidSigningPubkeyA signing pubkey was provided but a different one was expected.LDKBolt12SemanticError_MissingAmountAn amount was expected but was missing.LDKBolt12SemanticError_MissingCreationTimeAn invoice creation time was expected but was missing.LDKBolt12SemanticError_MissingDescriptionA required description was not provided.LDKBolt12SemanticError_MissingPathsBlinded paths were expected but were missing.LDKBolt12SemanticError_MissingPayerIdA payer id was expected but was missing.LDKBolt12SemanticError_MissingPayerMetadataPayer metadata was expected but was missing.LDKBolt12SemanticError_MissingPaymentHashAn invoice payment hash was expected but was missing.LDKBolt12SemanticError_MissingQuantityA quantity was expected but was missing.LDKBolt12SemanticError_MissingSignatureA signature was expected but was missing.LDKBolt12SemanticError_MissingSigningPubkeyA signing pubkey was not provided.LDKBolt12SemanticError_UnexpectedAmountAn amount was provided but was not expected.LDKBolt12SemanticError_UnexpectedChainA chain was provided but was not expected.LDKBolt12SemanticError_UnexpectedFeaturesFeatures were provided but were not expected.LDKBolt12SemanticError_UnexpectedMetadataMetadata was provided but was not expected.LDKBolt12SemanticError_UnexpectedQuantityA quantity or quantity bounds was provided but was not expected.LDKBolt12SemanticError_UnexpectedSigningPubkeyA signing pubkey was provided but was not expected.LDKBolt12SemanticError_UnknownRequiredFeaturesA feature was required but is unknown.LDKBolt12SemanticError_UnsupportedChainThe provided chain hash does not correspond to a supported chain.LDKBolt12SemanticError_UnsupportedCurrencyA currency was provided that is not supported.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Bolt12SemanticErrorvalueOf(String name)Returns the enum constant of this type with the specified name.static Bolt12SemanticError[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
LDKBolt12SemanticError_AlreadyExpired
public static final Bolt12SemanticError LDKBolt12SemanticError_AlreadyExpired
The current [`std::time::SystemTime`] is past the offer or invoice's expiration.
-
LDKBolt12SemanticError_UnsupportedChain
public static final Bolt12SemanticError LDKBolt12SemanticError_UnsupportedChain
The provided chain hash does not correspond to a supported chain.
-
LDKBolt12SemanticError_UnexpectedChain
public static final Bolt12SemanticError LDKBolt12SemanticError_UnexpectedChain
A chain was provided but was not expected.
-
LDKBolt12SemanticError_MissingAmount
public static final Bolt12SemanticError LDKBolt12SemanticError_MissingAmount
An amount was expected but was missing.
-
LDKBolt12SemanticError_InvalidAmount
public static final Bolt12SemanticError LDKBolt12SemanticError_InvalidAmount
The amount exceeded the total bitcoin supply.
-
LDKBolt12SemanticError_InsufficientAmount
public static final Bolt12SemanticError LDKBolt12SemanticError_InsufficientAmount
An amount was provided but was not sufficient in value.
-
LDKBolt12SemanticError_UnexpectedAmount
public static final Bolt12SemanticError LDKBolt12SemanticError_UnexpectedAmount
An amount was provided but was not expected.
-
LDKBolt12SemanticError_UnsupportedCurrency
public static final Bolt12SemanticError LDKBolt12SemanticError_UnsupportedCurrency
A currency was provided that is not supported.
-
LDKBolt12SemanticError_UnknownRequiredFeatures
public static final Bolt12SemanticError LDKBolt12SemanticError_UnknownRequiredFeatures
A feature was required but is unknown.
-
LDKBolt12SemanticError_UnexpectedFeatures
public static final Bolt12SemanticError LDKBolt12SemanticError_UnexpectedFeatures
Features were provided but were not expected.
-
LDKBolt12SemanticError_MissingDescription
public static final Bolt12SemanticError LDKBolt12SemanticError_MissingDescription
A required description was not provided.
-
LDKBolt12SemanticError_MissingSigningPubkey
public static final Bolt12SemanticError LDKBolt12SemanticError_MissingSigningPubkey
A signing pubkey was not provided.
-
LDKBolt12SemanticError_InvalidSigningPubkey
public static final Bolt12SemanticError LDKBolt12SemanticError_InvalidSigningPubkey
A signing pubkey was provided but a different one was expected.
-
LDKBolt12SemanticError_UnexpectedSigningPubkey
public static final Bolt12SemanticError LDKBolt12SemanticError_UnexpectedSigningPubkey
A signing pubkey was provided but was not expected.
-
LDKBolt12SemanticError_MissingQuantity
public static final Bolt12SemanticError LDKBolt12SemanticError_MissingQuantity
A quantity was expected but was missing.
-
LDKBolt12SemanticError_InvalidQuantity
public static final Bolt12SemanticError LDKBolt12SemanticError_InvalidQuantity
An unsupported quantity was provided.
-
LDKBolt12SemanticError_UnexpectedQuantity
public static final Bolt12SemanticError LDKBolt12SemanticError_UnexpectedQuantity
A quantity or quantity bounds was provided but was not expected.
-
LDKBolt12SemanticError_InvalidMetadata
public static final Bolt12SemanticError LDKBolt12SemanticError_InvalidMetadata
Metadata could not be used to verify the offers message.
-
LDKBolt12SemanticError_UnexpectedMetadata
public static final Bolt12SemanticError LDKBolt12SemanticError_UnexpectedMetadata
Metadata was provided but was not expected.
-
LDKBolt12SemanticError_MissingPayerMetadata
public static final Bolt12SemanticError LDKBolt12SemanticError_MissingPayerMetadata
Payer metadata was expected but was missing.
-
LDKBolt12SemanticError_MissingPayerId
public static final Bolt12SemanticError LDKBolt12SemanticError_MissingPayerId
A payer id was expected but was missing.
-
LDKBolt12SemanticError_MissingPaths
public static final Bolt12SemanticError LDKBolt12SemanticError_MissingPaths
Blinded paths were expected but were missing.
-
LDKBolt12SemanticError_InvalidPayInfo
public static final Bolt12SemanticError LDKBolt12SemanticError_InvalidPayInfo
The blinded payinfo given does not match the number of blinded path hops.
-
LDKBolt12SemanticError_MissingCreationTime
public static final Bolt12SemanticError LDKBolt12SemanticError_MissingCreationTime
An invoice creation time was expected but was missing.
-
LDKBolt12SemanticError_MissingPaymentHash
public static final Bolt12SemanticError LDKBolt12SemanticError_MissingPaymentHash
An invoice payment hash was expected but was missing.
-
LDKBolt12SemanticError_MissingSignature
public static final Bolt12SemanticError LDKBolt12SemanticError_MissingSignature
A signature was expected but was missing.
-
-
Method Detail
-
values
public static Bolt12SemanticError[] 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 (Bolt12SemanticError c : Bolt12SemanticError.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static Bolt12SemanticError 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
-
-