Trait jsonrpc_v2::ErrorLike
source · pub trait ErrorLike: Display {
// Provided methods
fn code(&self) -> i64 { ... }
fn message(&self) -> String { ... }
fn data(&self) -> Option<Box<dyn Serialize + Send>> { ... }
}
Expand description
Trait that can be used to map custom errors to the Error
object.