4 * Errors that may occur when converting a [`RawInvoice`] to an [`Invoice`]. They relate to the
5 * requirements sections in BOLT #11
7 public enum SemanticError {
9 * The invoice is missing the mandatory payment hash
11 LDKSemanticError_NoPaymentHash,
13 * The invoice has multiple payment hashes which isn't allowed
15 LDKSemanticError_MultiplePaymentHashes,
17 * No description or description hash are part of the invoice
19 LDKSemanticError_NoDescription,
21 * The invoice contains multiple descriptions and/or description hashes which isn't allowed
23 LDKSemanticError_MultipleDescriptions,
25 * The invoice is missing the mandatory payment secret, which all modern lightning nodes
28 LDKSemanticError_NoPaymentSecret,
30 * The invoice contains multiple payment secrets
32 LDKSemanticError_MultiplePaymentSecrets,
34 * The invoice's features are invalid
36 LDKSemanticError_InvalidFeatures,
38 * The recovery id doesn't fit the signature/pub key
40 LDKSemanticError_InvalidRecoveryId,
42 * The invoice's signature is invalid
44 LDKSemanticError_InvalidSignature,
46 * The invoice's amount was not a whole number of millisatoshis
48 LDKSemanticError_ImpreciseAmount,
49 ; static native void init();