X-Git-Url: http://git.bitcoin.ninja/index.cgi?a=blobdiff_plain;f=src%2Fmain%2Fjava%2Forg%2Fldk%2Fenums%2FSemanticError.java;fp=src%2Fmain%2Fjava%2Forg%2Fldk%2Fenums%2FSemanticError.java;h=0000000000000000000000000000000000000000;hb=8fa2bcb208a51fa352d04981f1387d8bceced107;hp=02af5846d5a79fb8eead15056d19b39f0e7e69ba;hpb=7da1092518e5ea1518255a4473c178f52549fd81;p=ldk-java diff --git a/src/main/java/org/ldk/enums/SemanticError.java b/src/main/java/org/ldk/enums/SemanticError.java deleted file mode 100644 index 02af5846..00000000 --- a/src/main/java/org/ldk/enums/SemanticError.java +++ /dev/null @@ -1,51 +0,0 @@ -package org.ldk.enums; - -/** - * Errors that may occur when converting a [`RawInvoice`] to an [`Invoice`]. They relate to the - * requirements sections in BOLT #11 - */ -public enum SemanticError { - /** - * The invoice is missing the mandatory payment hash - */ - LDKSemanticError_NoPaymentHash, - /** - * The invoice has multiple payment hashes which isn't allowed - */ - LDKSemanticError_MultiplePaymentHashes, - /** - * No description or description hash are part of the invoice - */ - LDKSemanticError_NoDescription, - /** - * The invoice contains multiple descriptions and/or description hashes which isn't allowed - */ - LDKSemanticError_MultipleDescriptions, - /** - * The invoice is missing the mandatory payment secret, which all modern lightning nodes - * should provide. - */ - LDKSemanticError_NoPaymentSecret, - /** - * The invoice contains multiple payment secrets - */ - LDKSemanticError_MultiplePaymentSecrets, - /** - * The invoice's features are invalid - */ - LDKSemanticError_InvalidFeatures, - /** - * The recovery id doesn't fit the signature/pub key - */ - LDKSemanticError_InvalidRecoveryId, - /** - * The invoice's signature is invalid - */ - LDKSemanticError_InvalidSignature, - /** - * The invoice's amount was not a whole number of millisatoshis - */ - LDKSemanticError_ImpreciseAmount, - ; static native void init(); - static { init(); } -} \ No newline at end of file