Crate human_errors

Source
Expand description

Errors which make your users’ lives easier.

Provides a framework through which you can expose error chains which include advice for how users can respond to (and hopefully resolve) a failure. Designed to make you treat recovery from failure as a fundamental part of the design process in your application.

Re-exports§

pub use super::Error;

Macros§

error_shim
Create a shim error type between [human_errors::Error] and other error types.

Structs§

BasicInternalError

Enums§

Error
The fundamental error type used by this library.

Functions§

detailed_message
Generates an error with the given message.
system
An error triggered by the system rather than the user.
system_with_cause
An error triggered by the system rather than the user, with a deeper cause.
system_with_internal
An error triggered by the system rather than the user, with a deeper cause.
user
A basic error triggered by something the user has done.
user_with_cause
An error triggered by something the user has done, with a deeper cause.
user_with_internal
An error triggered by something the user has done, with a deeper cause.