X-Git-Url: http://git.bitcoin.ninja/index.cgi?a=blobdiff_plain;f=src%2Fmain%2Fjava%2Forg%2Fldk%2Fenums%2FCreationError.java;h=f46601b3dcf0086a7f828d98846c1ab6e1c364ae;hb=f3e670e9341decac613d33fc52febf19cea32f20;hp=c0f494a26172481ecd2148f8053135cbc4235cf3;hpb=e30b350e325e7d517ea744578876d473839ad495;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..f46601b3 100644 --- a/src/main/java/org/ldk/enums/CreationError.java +++ b/src/main/java/org/ldk/enums/CreationError.java @@ -4,9 +4,21 @@ 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, ; static native void init(); static { init(); }