97b8d94114e6fcdf03798c40cc2a899c733d4df5
[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 `RawInvoice` or `Invoice`
5  */
6 public enum CreationError {
7         /**
8          * The supplied description string was longer than 639 __bytes__ (see [`Description::new(...)`](./struct.Description.html#method.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 <0 or can't be represented as `SystemTime`
17          */
18         LDKCreationError_TimestampOutOfBounds,
19         /**
20          * The supplied expiry time could cause an overflow if added to a `PositiveTimestamp`
21          */
22         LDKCreationError_ExpiryTimeOutOfBounds,
23         /**
24          * The supplied millisatoshi amount was greater than the total bitcoin supply.
25          */
26         LDKCreationError_InvalidAmount,
27         ; static native void init();
28         static { init(); }
29 }