X-Git-Url: http://git.bitcoin.ninja/index.cgi?a=blobdiff_plain;f=src%2Fmain%2Fjava%2Forg%2Fldk%2Fenums%2FCreationError.java;h=97b8d94114e6fcdf03798c40cc2a899c733d4df5;hb=1854b5cebef22ace9e9e4dd191f609818df9ce08;hp=c0f494a26172481ecd2148f8053135cbc4235cf3;hpb=b0c50b891cbca28d3bd1d86276c132ff5221d8e4;p=ldk-java diff --git a/src/main/java/org/ldk/enums/CreationError.java b/src/main/java/org/ldk/enums/CreationError.java index c0f494a2..97b8d941 100644 --- a/src/main/java/org/ldk/enums/CreationError.java +++ b/src/main/java/org/ldk/enums/CreationError.java @@ -4,10 +4,26 @@ package org.ldk.enums; * Errors that may occur when constructing a new `RawInvoice` or `Invoice` */ public enum CreationError { + /** + * The supplied description string was longer than 639 __bytes__ (see [`Description::new(...)`](./struct.Description.html#method.new)) + */ LDKCreationError_DescriptionTooLong, + /** + * The specified route has too many hops and can't be encoded + */ LDKCreationError_RouteTooLong, + /** + * The unix timestamp of the supplied date is <0 or can't be represented as `SystemTime` + */ LDKCreationError_TimestampOutOfBounds, + /** + * The supplied expiry time could cause an overflow if added to a `PositiveTimestamp` + */ LDKCreationError_ExpiryTimeOutOfBounds, + /** + * The supplied millisatoshi amount was greater than the total bitcoin supply. + */ + LDKCreationError_InvalidAmount, ; static native void init(); static { init(); } } \ No newline at end of file