Package org.ldk.structs
Class PaymentSendFailure
- java.lang.Object
-
- org.ldk.structs.PaymentSendFailure
-
- Direct Known Subclasses:
PaymentSendFailure.AllFailedRetrySafe
,PaymentSendFailure.ParameterError
,PaymentSendFailure.PartialFailure
,PaymentSendFailure.PathParameterError
public class PaymentSendFailure extends Object
If a payment fails to send, it can be in one of several states. This enum is returned as the Err() type describing which state the payment is in, see the description of individual enum states for more.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
PaymentSendFailure.AllFailedRetrySafe
static class
PaymentSendFailure.ParameterError
static class
PaymentSendFailure.PartialFailure
static class
PaymentSendFailure.PathParameterError
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static PaymentSendFailure
all_failed_retry_safe(APIError[] a)
Utility method to constructs a new AllFailedRetrySafe-variant PaymentSendFailurePaymentSendFailure
clone()
Creates a copy of the PaymentSendFailureprotected void
finalize()
static PaymentSendFailure
parameter_error(APIError a)
Utility method to constructs a new ParameterError-variant PaymentSendFailurestatic PaymentSendFailure
partial_failure(Result_NoneAPIErrorZ[] a)
Utility method to constructs a new PartialFailure-variant PaymentSendFailurestatic PaymentSendFailure
path_parameter_error(Result_NoneAPIErrorZ[] a)
Utility method to constructs a new PathParameterError-variant PaymentSendFailure
-
-
-
Method Detail
-
finalize
protected void finalize() throws Throwable
-
clone
public PaymentSendFailure clone()
Creates a copy of the PaymentSendFailure
-
parameter_error
public static PaymentSendFailure parameter_error(APIError a)
Utility method to constructs a new ParameterError-variant PaymentSendFailure
-
path_parameter_error
public static PaymentSendFailure path_parameter_error(Result_NoneAPIErrorZ[] a)
Utility method to constructs a new PathParameterError-variant PaymentSendFailure
-
all_failed_retry_safe
public static PaymentSendFailure all_failed_retry_safe(APIError[] a)
Utility method to constructs a new AllFailedRetrySafe-variant PaymentSendFailure
-
partial_failure
public static PaymentSendFailure partial_failure(Result_NoneAPIErrorZ[] a)
Utility method to constructs a new PartialFailure-variant PaymentSendFailure
-
-