uniffi_lipalightninglib

Type Alias PayError

source
pub type PayError = Error<PayErrorCode>;

Aliased Type§

enum PayError {
    InvalidInput {
        msg: String,
    },
    RuntimeError {
        code: PayErrorCode,
        msg: String,
    },
    PermanentFailure {
        msg: String,
    },
}

Variants§

§

InvalidInput

Invalid input. Consider fixing the input and retrying the request.

Fields

§

RuntimeError

Recoverable problem (e.g. network issue, problem with en external service). Consider retrying the request.

Fields

§

PermanentFailure

Unrecoverable problem (e.g. internal invariant broken). Consider suggesting the user to report the issue to the developers.

Fields