[−][src]Trait jsonrpc_v2::ErrorLike
Trait that can be used to map custom errors to the Error
object.
Provided methods
pub fn code(&self) -> i64
[src]
Code to be used in JSON-RPC 2.0 Error object. Default is 0.
pub fn message(&self) -> String
[src]
Message to be used in JSON-RPC 2.0 Error object. Default is the Display
value of the item.
pub fn data(&self) -> Option<Box<dyn Serialize + Send>>
[src]
Any additional data to be sent with the error. Default is None
.