X-Git-Url: http://git.bitcoin.ninja/index.cgi?a=blobdiff_plain;f=src%2Fmain%2Fjava%2Forg%2Fldk%2Fenums%2FCreationError.java;h=958959cc0861c9db3fb914794c841a394856f88f;hb=1d4aa806117a28f8a5899ed0dc4e9ad7ed117787;hp=c0f494a26172481ecd2148f8053135cbc4235cf3;hpb=b6cc0960eaee5a5bbc7fde79a56152d6dcd649d8;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..958959cc 100644 --- a/src/main/java/org/ldk/enums/CreationError.java +++ b/src/main/java/org/ldk/enums/CreationError.java @@ -4,10 +4,29 @@ 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 less than zero or greater than 35-bits + */ LDKCreationError_TimestampOutOfBounds, - LDKCreationError_ExpiryTimeOutOfBounds, + /** + * The supplied millisatoshi amount was greater than the total bitcoin supply. + */ + LDKCreationError_InvalidAmount, + /** + * Route hints were required for this invoice and were missing. Applies to + * [phantom invoices]. + * + * [phantom invoices]: crate::utils::create_phantom_invoice + */ + LDKCreationError_MissingRouteHints, ; static native void init(); static { init(); } } \ No newline at end of file