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.MonitorUpdateInProgress,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.MonitorUpdateInProgressAn 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.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 APIErrorbooleaneq(APIError b)Checks if two APIErrors contain equal inner contents.booleanequals(Object o)static 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_in_progress()Utility method to constructs a new MonitorUpdateInProgress-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_in_progress
public static APIError monitor_update_in_progress()
Utility method to constructs a new MonitorUpdateInProgress-variant APIError
-
incompatible_shutdown_script
public static APIError incompatible_shutdown_script(ShutdownScript script)
Utility method to constructs a new IncompatibleShutdownScript-variant APIError
-
eq
public boolean eq(APIError b)
Checks if two APIErrors contain equal inner contents. This ignores pointers and is_owned flags and looks at the values in fields.
-
-