0f4c50fa01b579ce1c39b5d77b27b5c4ef33dbc3
[ldk-java] / src / main / java / org / ldk / enums / CreationError.java
1 package org.ldk.enums;
2
3 /**
4  * Errors that may occur when constructing a new [`RawBolt11Invoice`] or [`Bolt11Invoice`]
5  */
6 public enum CreationError {
7         /**
8          * The supplied description string was longer than 639 __bytes__ (see [`Description::new`])
9          */
10         LDKCreationError_DescriptionTooLong,
11         /**
12          * The specified route has too many hops and can't be encoded
13          */
14         LDKCreationError_RouteTooLong,
15         /**
16          * The Unix timestamp of the supplied date is less than zero or greater than 35-bits
17          */
18         LDKCreationError_TimestampOutOfBounds,
19         /**
20          * The supplied millisatoshi amount was greater than the total bitcoin supply.
21          */
22         LDKCreationError_InvalidAmount,
23         /**
24          * Route hints were required for this invoice and were missing. Applies to
25          * [phantom invoices].
26          * 
27          * [phantom invoices]: crate::utils::create_phantom_invoice
28          */
29         LDKCreationError_MissingRouteHints,
30         /**
31          * The provided `min_final_cltv_expiry_delta` was less than [`MIN_FINAL_CLTV_EXPIRY_DELTA`].
32          * 
33          * [`MIN_FINAL_CLTV_EXPIRY_DELTA`]: lightning::ln::channelmanager::MIN_FINAL_CLTV_EXPIRY_DELTA
34          */
35         LDKCreationError_MinFinalCltvExpiryDeltaTooShort,
36         ; static native void init();
37         static { init(); }
38 }