[go: up one dir, main page]

Crate human_errors

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;
pub use super::Kind;

Structs§

Error
The fundamental error type used by this library.

Enums§

Kind
The kind of error which occurred.

Traits§

ResultExt
Extension trait for Result to convert errors into user-friendly or system-friendly Error types.

Functions§

system
An error triggered by the system rather than the user, with a deeper cause.
user
An error triggered by something the user has done, with a deeper cause.
wrap
Wraps an existing error with a basic message.
wrap_system
An error triggered by the system rather than the user, with a deeper cause.
wrap_user
An error triggered by something the user has done, with a deeper cause.