Package org.ldk.enums
Enum CreationError
- java.lang.Object
-
- java.lang.Enum<CreationError>
-
- org.ldk.enums.CreationError
-
- All Implemented Interfaces:
Serializable
,Comparable<CreationError>
public enum CreationError extends Enum<CreationError>
Errors that may occur when constructing a new [`RawInvoice`] or [`Invoice`]
-
-
Enum Constant Summary
Enum Constants Enum Constant Description LDKCreationError_DescriptionTooLong
The supplied description string was longer than 639 __bytes__ (see [`Description::new`])LDKCreationError_InvalidAmount
The supplied millisatoshi amount was greater than the total bitcoin supply.LDKCreationError_MinFinalCltvExpiryDeltaTooShort
The provided `min_final_cltv_expiry_delta` was less than [`MIN_FINAL_CLTV_EXPIRY_DELTA`].LDKCreationError_MissingRouteHints
Route hints were required for this invoice and were missing.LDKCreationError_RouteTooLong
The specified route has too many hops and can't be encodedLDKCreationError_TimestampOutOfBounds
The Unix timestamp of the supplied date is less than zero or greater than 35-bits
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static CreationError
valueOf(String name)
Returns the enum constant of this type with the specified name.static CreationError[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
LDKCreationError_DescriptionTooLong
public static final CreationError LDKCreationError_DescriptionTooLong
The supplied description string was longer than 639 __bytes__ (see [`Description::new`])
-
LDKCreationError_RouteTooLong
public static final CreationError LDKCreationError_RouteTooLong
The specified route has too many hops and can't be encoded
-
LDKCreationError_TimestampOutOfBounds
public static final CreationError LDKCreationError_TimestampOutOfBounds
The Unix timestamp of the supplied date is less than zero or greater than 35-bits
-
LDKCreationError_InvalidAmount
public static final CreationError LDKCreationError_InvalidAmount
The supplied millisatoshi amount was greater than the total bitcoin supply.
-
LDKCreationError_MissingRouteHints
public static final CreationError LDKCreationError_MissingRouteHints
Route hints were required for this invoice and were missing. Applies to [phantom invoices]. [phantom invoices]: crate::utils::create_phantom_invoice
-
LDKCreationError_MinFinalCltvExpiryDeltaTooShort
public static final CreationError LDKCreationError_MinFinalCltvExpiryDeltaTooShort
The provided `min_final_cltv_expiry_delta` was less than [`MIN_FINAL_CLTV_EXPIRY_DELTA`]. [`MIN_FINAL_CLTV_EXPIRY_DELTA`]: lightning::ln::channelmanager::MIN_FINAL_CLTV_EXPIRY_DELTA
-
-
Method Detail
-
values
public static CreationError[] 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 (CreationError c : CreationError.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static CreationError 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
-
-