GenericError

Trait GenericError 

Source
pub trait GenericError: Error {
    // Required method
    fn as_any(&self) -> &dyn Any;

    // Provided methods
    fn code(&self) -> Code { ... }
    fn details(&self) -> Vec<Any> { ... }
}
Expand description

Generic error trait.

Required Methods§

Source

fn as_any(&self) -> &dyn Any

Returns the error as Any for downcasting.

Provided Methods§

Source

fn code(&self) -> Code

Returns the gRPC status code.

Source

fn details(&self) -> Vec<Any>

Returns the error details.

Implementors§