Struct perseus::errors::GenericErrorWithCause [−][src]
pub struct GenericErrorWithCause {
pub error: Box<dyn Error>,
pub cause: ErrorCause,
}
Expand description
An error that has an attached cause that blames either the client or the server for its occurrence. You can convert any error
into this with .into()
or ?
, which will set the cause to the server by default, resulting in a 500 Internal Server Error
HTTP status code. If this isn’t what you want, you’ll need to initialize this explicitly.
Fields
error: Box<dyn Error>
The underlying error.
cause: ErrorCause
The cause of the error.