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