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 classPaymentSendFailure.AllFailedRetrySafestatic classPaymentSendFailure.ParameterErrorstatic classPaymentSendFailure.PartialFailurestatic classPaymentSendFailure.PathParameterError
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static PaymentSendFailureall_failed_retry_safe(APIError[] a)Utility method to constructs a new AllFailedRetrySafe-variant PaymentSendFailurePaymentSendFailureclone()Creates a copy of the PaymentSendFailureprotected voidfinalize()static PaymentSendFailureparameter_error(APIError a)Utility method to constructs a new ParameterError-variant PaymentSendFailurestatic PaymentSendFailurepartial_failure(Result_NoneAPIErrorZ[] a)Utility method to constructs a new PartialFailure-variant PaymentSendFailurestatic PaymentSendFailurepath_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
-
-