Enum lightning::util::errors::APIError [−][src]
pub enum APIError { APIMisuseError { err: String, }, FeeRateTooHigh { err: String, feerate: u32, }, RouteError { err: &'static str, }, ChannelUnavailable { err: String, }, MonitorUpdateFailed, }
Expand description
Indicates an error on the client’s part (usually some variant of attempting to use too-low or too-high values)
Variants
Indicates the API was wholly misused (see err for more). Cases where these can be returned are documented, but generally indicates some precondition of a function was violated.
Show fields
Fields of APIMisuseError
err: String
A human-readable error message
Due to a high feerate, we were unable to complete the request. For example, this may be returned if the feerate implies we cannot open a channel at the requested value, but opening a larger channel would succeed.
Show fields
A malformed Route was provided (eg overflowed value, node id mismatch, overly-looped route, too-many-hops, etc).
Show fields
Fields of RouteError
err: &'static str
A human-readable error message
We were unable to complete the request as the Channel required to do so is unable to complete the request (or was not found). This can take many forms, including disconnected peer, channel at capacity, channel shutting down, etc.
Show fields
An attempt to call watch/update_channel returned an Err (ie you did this!), causing the attempted action to fail.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for APIError
impl UnwindSafe for APIError
Blanket Implementations
Mutably borrows from an owned value. Read more