pub enum RpcErrorCode {
Show 21 variants
JSONRPC2_INVALID_REQUEST = -32_600,
JSONRPC2_METHOD_NOT_FOUND = -32_601,
JSONRPC2_INVALID_PARAMS = -32_602,
LIGHTNINGD = -1,
PARAM_DEV_ERROR = -2,
PAY_IN_PROGRESS = 200,
PAY_RHASH_ALREADY_USED = 201,
PAY_UNPARSEABLE_ONION = 202,
PAY_DESTINATION_PERM_FAIL = 203,
PAY_TRY_OTHER_ROUTE = 204,
PAY_ROUTE_NOT_FOUND = 205,
PAY_ROUTE_TOO_EXPENSIVE = 206,
PAY_INVOICE_EXPIRED = 207,
PAY_NO_SUCH_PAYMENT = 208,
PAY_UNSPECIFIED_ERROR = 209,
PAY_STOPPED_RETRYING = 210,
FUND_MAX_EXCEEDED = 300,
FUND_CANNOT_AFFORD = 301,
FUND_OUTPUT_IS_DUST = 302,
INVOICE_LABEL_ALREADY_EXISTS = 900,
INVOICE_PREIMAGE_ALREADY_EXISTS = 901,
}
Expand description
Known lightningd error codes.
Keep this up to date with lightningd/jsonrpc_errors.h
Variants§
JSONRPC2_INVALID_REQUEST = -32_600
Invalid request
JSONRPC2_METHOD_NOT_FOUND = -32_601
Method not found
JSONRPC2_INVALID_PARAMS = -32_602
Invalid parameters
LIGHTNINGD = -1
Uncategorized error
PARAM_DEV_ERROR = -2
Developer error in the parameters to param() call
PAY_IN_PROGRESS = 200
In progress
PAY_RHASH_ALREADY_USED = 201
rhash
already used
PAY_UNPARSEABLE_ONION = 202
Unparseable onion address
PAY_DESTINATION_PERM_FAIL = 203
Destination permanent failure
PAY_TRY_OTHER_ROUTE = 204
Try another route
PAY_ROUTE_NOT_FOUND = 205
Route not found
PAY_ROUTE_TOO_EXPENSIVE = 206
Route too expensive
PAY_INVOICE_EXPIRED = 207
Invoice has expired
PAY_NO_SUCH_PAYMENT = 208
No such payment
PAY_UNSPECIFIED_ERROR = 209
Unspecified error
PAY_STOPPED_RETRYING = 210
Stopped retrying
FUND_MAX_EXCEEDED = 300
Funding maximum exceeded
FUND_CANNOT_AFFORD = 301
Cannot afford funding
FUND_OUTPUT_IS_DUST = 302
Funding output is dust
INVOICE_LABEL_ALREADY_EXISTS = 900
Invoice label already exists
INVOICE_PREIMAGE_ALREADY_EXISTS = 901
Invoice pre-image already exists
Trait Implementations§
Auto Trait Implementations§
impl Freeze for RpcErrorCode
impl RefUnwindSafe for RpcErrorCode
impl Send for RpcErrorCode
impl Sync for RpcErrorCode
impl Unpin for RpcErrorCode
impl UnwindSafe for RpcErrorCode
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more