The type of Errors inside and when using Iron.
IronError informs its receivers of two things:
- What went wrong
- What to do about it
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).
response field provides a tangible action to be taken if this error
is not otherwise handled.
error: Box<Error + Send>
The underlying error
This can be layered and will be logged at the end of an errored request.
What to do about this error.
This Response will be used when the error-handling flow finishes.
Create a new IronError from an error and a modifier.