4 * Errors that may occur when constructing a new [`RawInvoice`] or [`Invoice`]
6 public enum CreationError {
8 * The supplied description string was longer than 639 __bytes__ (see [`Description::new`])
10 LDKCreationError_DescriptionTooLong,
12 * The specified route has too many hops and can't be encoded
14 LDKCreationError_RouteTooLong,
16 * The Unix timestamp of the supplied date is less than zero or greater than 35-bits
18 LDKCreationError_TimestampOutOfBounds,
20 * The supplied millisatoshi amount was greater than the total bitcoin supply.
22 LDKCreationError_InvalidAmount,
24 * Route hints were required for this invoice and were missing. Applies to
27 * [phantom invoices]: crate::utils::create_phantom_invoice
29 LDKCreationError_MissingRouteHints,
31 * The provided `min_final_cltv_expiry_delta` was less than [`MIN_FINAL_CLTV_EXPIRY_DELTA`].
33 * [`MIN_FINAL_CLTV_EXPIRY_DELTA`]: lightning::ln::channelmanager::MIN_FINAL_CLTV_EXPIRY_DELTA
35 LDKCreationError_MinFinalCltvExpiryDeltaTooShort,
36 ; static native void init();