Package org.ldk.structs
Class PaymentError
- java.lang.Object
-
- org.ldk.structs.PaymentError
-
- Direct Known Subclasses:
PaymentError.Invoice,PaymentError.Routing,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 classPaymentError.InvoiceAn error resulting from the provided [`Invoice`] or payment hash.static classPaymentError.RoutingAn error occurring when finding a route.static classPaymentError.SendingAn error occurring when sending a payment.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description PaymentErrorclone()Creates a copy of the PaymentErrorprotected voidfinalize()static PaymentErrorinvoice(String a)Utility method to constructs a new Invoice-variant PaymentErrorstatic PaymentErrorrouting(LightningError a)Utility method to constructs a new Routing-variant PaymentErrorstatic PaymentErrorsending(PaymentSendFailure 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
-
routing
public static PaymentError routing(LightningError a)
Utility method to constructs a new Routing-variant PaymentError
-
sending
public static PaymentError sending(PaymentSendFailure a)
Utility method to constructs a new Sending-variant PaymentError
-
-