[][src]Enum lightning::util::errors::APIError

pub enum APIError {
    APIMisuseError {
        err: &'static str,
    },
    FeeRateTooHigh {
        err: String,
        feerate: u64,
    },
    RouteError {
        err: &'static str,
    },
    ChannelUnavailable {
        err: &'static str,
    },
    MonitorUpdateFailed,
}

Indicates an error on the client's part (usually some variant of attempting to use too-low or too-high values)

Variants

APIMisuseError

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.

Fields of APIMisuseError

err: &'static str

A human-readable error message

FeeRateTooHigh

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.

Fields of FeeRateTooHigh

err: String

A human-readable error message

feerate: u64

The feerate which was too high.

RouteError

A malformed Route was provided (eg overflowed value, node id mismatch, overly-looped route, too-many-hops, etc).

Fields of RouteError

err: &'static str

A human-readable error message

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). This can take many forms, including disconnected peer, channel at capacity, channel shutting down, etc.

Fields of ChannelUnavailable

err: &'static str

A human-readable error message

MonitorUpdateFailed

An attempt to call add_update_monitor returned an Err (ie you did this!), causing the attempted action to fail.

Trait Implementations

impl Debug for APIError[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = !

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.