1 namespace org { namespace ldk { namespace enums {/**
2 * Errors that may occur when constructing a new `RawInvoice` or `Invoice`
4 public enum CreationError {
6 * The supplied description string was longer than 639 __bytes__ (see [`Description::new(...)`](./struct.Description.html#method.new))
8 LDKCreationError_DescriptionTooLong,
10 * The specified route has too many hops and can't be encoded
12 LDKCreationError_RouteTooLong,
14 * The Unix timestamp of the supplied date is less than zero or greater than 35-bits
16 LDKCreationError_TimestampOutOfBounds,
18 * The supplied millisatoshi amount was greater than the total bitcoin supply.
20 LDKCreationError_InvalidAmount,
22 * Route hints were required for this invoice and were missing. Applies to
25 * [phantom invoices]: crate::utils::create_phantom_invoice
27 LDKCreationError_MissingRouteHints,