Package org.ldk.structs
Class APIError
- java.lang.Object
-
- org.ldk.structs.APIError
-
- Direct Known Subclasses:
APIError.APIMisuseError,APIError.ChannelUnavailable,APIError.FeeRateTooHigh,APIError.IncompatibleShutdownScript,APIError.MonitorUpdateFailed,APIError.RouteError
public class APIError extends Object
Indicates an error on the client's part (usually some variant of attempting to use too-low or too-high values)
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classAPIError.APIMisuseErrorIndicates the API was wholly misused (see err for more).static classAPIError.ChannelUnavailableWe were unable to complete the request as the Channel required to do so is unable to complete the request (or was not found).static classAPIError.FeeRateTooHighDue to a high feerate, we were unable to complete the request.static classAPIError.IncompatibleShutdownScript[`KeysInterface::get_shutdown_scriptpubkey`] returned a shutdown scriptpubkey incompatible with the channel counterparty as negotiated in [`InitFeatures`].static classAPIError.MonitorUpdateFailedAn attempt to call watch/update_channel returned an Err (ie you did this!), causing the attempted action to fail.static classAPIError.RouteErrorA malformed Route was provided (eg overflowed value, node id mismatch, overly-looped route, too-many-hops, etc).
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static APIErrorapimisuse_error(String err)Utility method to constructs a new APIMisuseError-variant APIErrorstatic APIErrorchannel_unavailable(String err)Utility method to constructs a new ChannelUnavailable-variant APIErrorAPIErrorclone()Creates a copy of the APIErrorstatic APIErrorfee_rate_too_high(String err, int feerate)Utility method to constructs a new FeeRateTooHigh-variant APIErrorprotected voidfinalize()static APIErrorincompatible_shutdown_script(ShutdownScript script)Utility method to constructs a new IncompatibleShutdownScript-variant APIErrorstatic APIErrormonitor_update_failed()Utility method to constructs a new MonitorUpdateFailed-variant APIErrorstatic APIErrorroute_error(String err)Utility method to constructs a new RouteError-variant APIError
-
-
-
Method Detail
-
finalize
protected void finalize() throws Throwable
-
apimisuse_error
public static APIError apimisuse_error(String err)
Utility method to constructs a new APIMisuseError-variant APIError
-
fee_rate_too_high
public static APIError fee_rate_too_high(String err, int feerate)
Utility method to constructs a new FeeRateTooHigh-variant APIError
-
route_error
public static APIError route_error(String err)
Utility method to constructs a new RouteError-variant APIError
-
channel_unavailable
public static APIError channel_unavailable(String err)
Utility method to constructs a new ChannelUnavailable-variant APIError
-
monitor_update_failed
public static APIError monitor_update_failed()
Utility method to constructs a new MonitorUpdateFailed-variant APIError
-
incompatible_shutdown_script
public static APIError incompatible_shutdown_script(ShutdownScript script)
Utility method to constructs a new IncompatibleShutdownScript-variant APIError
-
-