pub trait ErrorExt:
Error
+ Send
+ Sync
+ 'static {
// Provided methods
fn raise(self) -> Exn<Self>
where Self: Sized { ... }
fn raise_erased(self) -> Exn
where Self: Sized { ... }
fn raise_all<T, I>(self, sources: I) -> Exn<Self>
where Self: Sized,
T: Error + Send + Sync + 'static,
I: IntoIterator,
I::Item: Into<Exn<T>> { ... }
}Expand description
A trait bound of the supported error type of Exn.
Provided Methods§
Sourcefn raise_erased(self) -> Exnwhere
Self: Sized,
fn raise_erased(self) -> Exnwhere
Self: Sized,
Raise this error as a new exception, with type erasure.