pub trait RpcErrorData {
// Provided methods
fn error_code(&self) -> Option<i32> { ... }
fn error_message(&self) -> Option<String> { ... }
fn error_data(&self) -> Option<Value> { ... }
}Expand description
Trait for errors that can provide additional RPC error data
Provided Methods§
Sourcefn error_code(&self) -> Option<i32>
fn error_code(&self) -> Option<i32>
Return the error code to use in RPC responses
Sourcefn error_message(&self) -> Option<String>
fn error_message(&self) -> Option<String>
Return the error message to use in RPC responses
Sourcefn error_data(&self) -> Option<Value>
fn error_data(&self) -> Option<Value>
Return additional data to include in the RPC error response