pub type LnError = Error<RuntimeErrorCode>;
Aliased Type§
enum LnError {
InvalidInput {
msg: String,
},
RuntimeError {
code: RuntimeErrorCode,
msg: String,
},
PermanentFailure {
msg: String,
},
}
Variants§
InvalidInput
Invalid input. Consider fixing the input and retrying the request.
RuntimeError
Recoverable problem (e.g. network issue, problem with en external service). Consider retrying the request.
PermanentFailure
Unrecoverable problem (e.g. internal invariant broken). Consider suggesting the user to report the issue to the developers.