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 classPaymentError.InvoiceAn error resulting from the provided [`Bolt11Invoice`] or payment hash.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 PaymentErrorbooleaneq(PaymentError b)Checks if two PaymentErrors contain equal inner contents.booleanequals(Object o)protected voidfinalize()static PaymentErrorinvoice(String a)Utility method to constructs a new Invoice-variant PaymentErrorstatic PaymentErrorsending(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
-
eq
public boolean eq(PaymentError b)
Checks if two PaymentErrors contain equal inner contents. This ignores pointers and is_owned flags and looks at the values in fields.
-
-