pub trait ChromaError: Error + Send {
// Required method
fn code(&self) -> ErrorCodes;
// Provided methods
fn boxed(self) -> Box<dyn ChromaError>
where Self: Sized + 'static { ... }
fn should_trace_error(&self) -> bool { ... }
}Required Methods§
fn code(&self) -> ErrorCodes
Provided Methods§
fn boxed(self) -> Box<dyn ChromaError>where
Self: Sized + 'static,
fn should_trace_error(&self) -> bool
Trait Implementations§
Source§impl ChromaError for Box<dyn ChromaError>
impl ChromaError for Box<dyn ChromaError>
fn code(&self) -> ErrorCodes
fn boxed(self) -> Box<dyn ChromaError>where
Self: Sized + 'static,
fn should_trace_error(&self) -> bool
Source§impl Error for Box<dyn ChromaError>
impl Error for Box<dyn ChromaError>
1.30.0 · 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
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()