Uses of Class
org.ldk.structs.APIError
-
Packages that use APIError Package Description org.ldk.structs -
-
Uses of APIError in org.ldk.structs
Subclasses of APIError in org.ldk.structs Modifier and Type Class Description static class
APIError.APIMisuseError
Indicates the API was wholly misused (see err for more).static class
APIError.ChannelUnavailable
We were unable to complete the request as the Channel required to do so is unable to complete the request (or was not found).static class
APIError.FeeRateTooHigh
Due to a high feerate, we were unable to complete the request.static class
APIError.IncompatibleShutdownScript
[`SignerProvider::get_shutdown_scriptpubkey`] returned a shutdown scriptpubkey incompatible with the channel counterparty as negotiated in [`InitFeatures`].static class
APIError.InvalidRoute
A malformed Route was provided (eg overflowed value, node id mismatch, overly-looped route, too-many-hops, etc).static class
APIError.MonitorUpdateInProgress
An attempt to call [`chain::Watch::watch_channel`]/[`chain::Watch::update_channel`] returned a [`ChannelMonitorUpdateStatus::InProgress`] indicating the persistence of a monitor update is awaiting async resolution.Fields in org.ldk.structs declared as APIError Modifier and Type Field Description APIError[]
PaymentSendFailure.AllFailedResendSafe. all_failed_resend_safe
APIError
PathFailure.InitialSend. err
The error surfaced from initial send.APIError
Result__u832APIErrorZ.Result__u832APIErrorZ_Err. err
APIError
Result_C2Tuple_PaymentHashPaymentSecretZAPIErrorZ.Result_C2Tuple_PaymentHashPaymentSecretZAPIErrorZ_Err. err
APIError
Result_NoneAPIErrorZ.Result_NoneAPIErrorZ_Err. err
APIError
Result_PaymentPreimageAPIErrorZ.Result_PaymentPreimageAPIErrorZ_Err. err
APIError
Result_PaymentSecretAPIErrorZ.Result_PaymentSecretAPIErrorZ_Err. err
APIError
PaymentSendFailure.ParameterError. parameter_error
APIError
Option_APIErrorZ.Some. some
Methods in org.ldk.structs that return APIError Modifier and Type Method Description static APIError
APIError. apimisuse_error(String err)
Utility method to constructs a new APIMisuseError-variant APIErrorstatic APIError
APIError. channel_unavailable(String err)
Utility method to constructs a new ChannelUnavailable-variant APIErrorAPIError
APIError. clone()
Creates a copy of the APIErrorstatic APIError
APIError. fee_rate_too_high(String err, int feerate)
Utility method to constructs a new FeeRateTooHigh-variant APIErrorstatic APIError
APIError. incompatible_shutdown_script(ShutdownScript script)
Utility method to constructs a new IncompatibleShutdownScript-variant APIErrorstatic APIError
APIError. invalid_route(String err)
Utility method to constructs a new InvalidRoute-variant APIErrorstatic APIError
APIError. monitor_update_in_progress()
Utility method to constructs a new MonitorUpdateInProgress-variant APIErrorMethods in org.ldk.structs with parameters of type APIError Modifier and Type Method Description static PaymentSendFailure
PaymentSendFailure. all_failed_resend_safe(APIError[] a)
Utility method to constructs a new AllFailedResendSafe-variant PaymentSendFailureboolean
APIError. eq(APIError b)
Checks if two APIErrors contain equal inner contents.static Result__u832APIErrorZ
Result__u832APIErrorZ. err(APIError e)
Creates a new CResult__u832APIErrorZ in the error state.static Result_C2Tuple_PaymentHashPaymentSecretZAPIErrorZ
Result_C2Tuple_PaymentHashPaymentSecretZAPIErrorZ. err(APIError e)
Creates a new CResult_C2Tuple_PaymentHashPaymentSecretZAPIErrorZ in the error state.static Result_NoneAPIErrorZ
Result_NoneAPIErrorZ. err(APIError e)
Creates a new CResult_NoneAPIErrorZ in the error state.static Result_PaymentPreimageAPIErrorZ
Result_PaymentPreimageAPIErrorZ. err(APIError e)
Creates a new CResult_PaymentPreimageAPIErrorZ in the error state.static Result_PaymentSecretAPIErrorZ
Result_PaymentSecretAPIErrorZ. err(APIError e)
Creates a new CResult_PaymentSecretAPIErrorZ in the error state.static PathFailure
PathFailure. initial_send(APIError err)
Utility method to constructs a new InitialSend-variant PathFailurestatic PaymentSendFailure
PaymentSendFailure. parameter_error(APIError a)
Utility method to constructs a new ParameterError-variant PaymentSendFailurestatic Option_APIErrorZ
Option_APIErrorZ. some(APIError o)
Constructs a new COption_APIErrorZ containing a crate::lightning::util::errors::APIError
-