Package org.ldk.structs
Class PaymentError
- java.lang.Object
-
- org.ldk.structs.PaymentError
-
- Direct Known Subclasses:
PaymentError.Invoice
,PaymentError.Sending
public class PaymentError extends Object
An error that may occur when making a payment.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
PaymentError.Invoice
An error resulting from the provided [`Invoice`] or payment hash.static class
PaymentError.Sending
An error occurring when sending a payment.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description PaymentError
clone()
Creates a copy of the PaymentErrorprotected void
finalize()
static PaymentError
invoice(String a)
Utility method to constructs a new Invoice-variant PaymentErrorstatic PaymentError
sending(RetryableSendFailure a)
Utility method to constructs a new Sending-variant PaymentError
-
-
-
Method Detail
-
finalize
protected void finalize() throws Throwable
-
clone
public PaymentError clone()
Creates a copy of the PaymentError
-
invoice
public static PaymentError invoice(String a)
Utility method to constructs a new Invoice-variant PaymentError
-
sending
public static PaymentError sending(RetryableSendFailure a)
Utility method to constructs a new Sending-variant PaymentError
-
-