X-Git-Url: http://git.bitcoin.ninja/index.cgi?a=blobdiff_plain;f=src%2Fmain%2Fjava%2Forg%2Fldk%2Fenums%2FFailureCode.java;fp=src%2Fmain%2Fjava%2Forg%2Fldk%2Fenums%2FFailureCode.java;h=0000000000000000000000000000000000000000;hb=07d5d868dfe064aadb28a7f7ca6002c16be9723d;hp=d21f289e7da1320ea9240240ef2bf21b52e094f7;hpb=32973ea2749f8efd05b543dd774763513013b38b;p=ldk-java diff --git a/src/main/java/org/ldk/enums/FailureCode.java b/src/main/java/org/ldk/enums/FailureCode.java deleted file mode 100644 index d21f289e..00000000 --- a/src/main/java/org/ldk/enums/FailureCode.java +++ /dev/null @@ -1,29 +0,0 @@ -package org.ldk.enums; - -/** - * This enum is used to specify which error data to send to peers when failing back an HTLC - * using [`ChannelManager::fail_htlc_backwards_with_reason`]. - * - * For more info on failure codes, see . - */ -public enum FailureCode { - /** - * We had a temporary error processing the payment. Useful if no other error codes fit - * and you want to indicate that the payer may want to retry. - */ - LDKFailureCode_TemporaryNodeFailure, - /** - * We have a required feature which was not in this onion. For example, you may require - * some additional metadata that was not provided with this payment. - */ - LDKFailureCode_RequiredNodeFeatureMissing, - /** - * You may wish to use this when a `payment_preimage` is unknown, or the CLTV expiry of - * the HTLC is too close to the current block height for safe handling. - * Using this failure code in [`ChannelManager::fail_htlc_backwards_with_reason`] is - * equivalent to calling [`ChannelManager::fail_htlc_backwards`]. - */ - LDKFailureCode_IncorrectOrUnknownPaymentDetails, - ; static native void init(); - static { init(); } -} \ No newline at end of file