Skip to main content

Module error

Module error 

Source
Expand description

Error types and helpers.

Modules§

utils
Helper traits, types, and functions.

Structs§

Backtrace
Representation of a backtrace.
BacktraceRaw
Representation of a backtrace.
BacktraceResolver
Backtrace resolver.
Error
An error container.
ErrorMessage
A lightweight owned error message.
ErrorMessageChained
An owned error message with an optional source error.
Failure
Type-erased container holding error information.
FailureDiagnostic
Type-erased diagnostic view of a Failure.
ResultSignature
Helper type holding a result classification signature.
Success
Marker diagnostic type representing a successful result.

Enums§

ResultType
The type of the result.

Traits§

AsError
Provides access to an error’s diagnostic representation.
ErrorDiagnostic
Provides diagnostic information for errors.
ErrorMapping
Helper trait for converting a value into a unified error-aware result type.
IntoFailure
Helper trait for converting a value into a type-erased Failure.
Retryable
The retry policy of the error.

Functions§

fmt_diag
Formats a full diagnostic view of an error for logging and tracing.
fmt_diag_string
Formats a full diagnostic view of an error for logging and tracing.
fmt_diag_typ
Formats a full diagnostic view of an error for logging and tracing.
fmt_err
Writes an error and its source chain.
fmt_err_string
Formats an error and its source chain into a string.
set_backtrace_start
Sets the source location where rendered backtraces are cut off.
with_service
Executes a future and ensures an error service is set.