[−][src]Struct iron::error::IronError
The type of Errors inside and when using Iron.
IronError
informs its receivers of two things:
- What went wrong
- What to do about it
The error
field is responsible for informing receivers of which
error occured, and receivers may also modify the error field by layering
it (building up a cause chain).
The response
field provides a tangible action to be taken if this error
is not otherwise handled.
Fields
error: Box<dyn Error + Send>
The underlying error
This can be layered and will be logged at the end of an errored request.
response: Response
What to do about this error.
This Response will be used when the error-handling flow finishes.
Methods
impl IronError
[src]
pub fn new<E: 'static + Error + Send, M: Modifier<Response>>(
e: E,
m: M
) -> IronError
[src]
e: E,
m: M
) -> IronError
Create a new IronError
from an error and a modifier.
Trait Implementations
Auto Trait Implementations
impl !Sync for IronError
impl Unpin for IronError
impl !Send for IronError
impl !UnwindSafe for IronError
impl !RefUnwindSafe for IronError
Blanket Implementations
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
impl<T> From<T> for T
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Typeable for T where
T: Any,
T: Any,
impl<T> DebugAny for T where
T: Any + Debug,
[src]
T: Any + Debug,
impl<T> UnsafeAny for T where
T: Any,
T: Any,