Uses of Class
org.ldk.structs.FailureCode
-
Packages that use FailureCode Package Description org.ldk.structs -
-
Uses of FailureCode in org.ldk.structs
Subclasses of FailureCode in org.ldk.structs Modifier and Type Class Description static classFailureCode.IncorrectOrUnknownPaymentDetailsYou 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.static classFailureCode.InvalidOnionPayloadWe failed to process the payload after the onion was decrypted.static classFailureCode.RequiredNodeFeatureMissingWe have a required feature which was not in this onion.static classFailureCode.TemporaryNodeFailureWe had a temporary error processing the payment.Methods in org.ldk.structs that return FailureCode Modifier and Type Method Description FailureCodeFailureCode. clone()Creates a copy of the FailureCodestatic FailureCodeFailureCode. incorrect_or_unknown_payment_details()Utility method to constructs a new IncorrectOrUnknownPaymentDetails-variant FailureCodestatic FailureCodeFailureCode. invalid_onion_payload(Option_C2Tuple_u64u16ZZ a)Utility method to constructs a new InvalidOnionPayload-variant FailureCodestatic FailureCodeFailureCode. required_node_feature_missing()Utility method to constructs a new RequiredNodeFeatureMissing-variant FailureCodestatic FailureCodeFailureCode. temporary_node_failure()Utility method to constructs a new TemporaryNodeFailure-variant FailureCodeMethods in org.ldk.structs with parameters of type FailureCode Modifier and Type Method Description voidChannelManager. fail_htlc_backwards_with_reason(byte[] payment_hash, FailureCode failure_code)This is a variant of [`ChannelManager::fail_htlc_backwards`] that allows you to specify the reason for the failure.
-