pub trait ExplorerAPIError: Display + Debug {
// Required method
fn code(&self) -> &str;
}
Expand description
ExplorerAPIError is a trait that represents an error that can be returned returned from the ExplorerAPI for various reasons.
It aims to be Serializable for the purposes of conveying the error to the client.
Required Methods§
Trait Implementations§
Source§impl Error for dyn ExplorerAPIError
impl Error for dyn ExplorerAPIError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()