Crate bigerror
Source pub use attachment::Expectation;
pub use attachment::Field;
pub use attachment::Index;
pub use attachment::KeyValue;
pub use attachment::Type;
pub use error_stack;
pub use context::*;
- attachment
- Error attachment types and utilities for adding context to error reports.
- context
- Common error context types for different categories of errors.
- __field
- bail
- Re-export of error-stack types and macros for convenience.
Creates a
Report
and returns it as Result
. - ensure
- Re-export of error-stack types and macros for convenience.
Ensures
$cond
is met, otherwise return an error. - expect_field
- kv
- Allows one to quickly specify a
KeyValue
pair, optionally using a
ty:
prefix using the $value
Type
as the key - reportDeprecated
- Re-export of error-stack types and macros for convenience.
Creates a
Report
from the given parameters. - ty
- Report
- Re-export of error-stack types and macros for convenience.
Contains a
Frame
stack consisting of Context
s and attachments.
- AttachExt
- Extension trait that adds attachment methods to error reports and results.
- ClearResult
- Trait for clearing either the success or error part of a
Result
. - ContextDeprecated
- Re-export of error-stack types and macros for convenience.
Defines the current context of a
Report
. - IntoContext
- Trait for converting error reports from one context type to another.
- IntoReport
- Re-export of error-stack types and macros for convenience.
Provides unified way to convert an error-like structure to a
Report
. - OptionReport
- Extension trait for
Option<T>
that provides methods to convert None
into error reports. - ReportAs
- Trait for converting
Result<T, E>
into Result<T, Report<C>>
with automatic error wrapping. - ResultExt
- Re-export of error-stack types and macros for convenience.
Extension trait for
Result
to provide context information on
Report
s. - ResultIntoContext
- Extension trait for
Result<T, Report<C>>
that provides context conversion methods. - ThinContext
- A trait for zero-sized error types that provides convenient error creation methods.
- init_colour
- Initialize error reporting with colored output.
- init_emphasis
- Initialize error reporting with emphasis only (no full color).
- init_no_ansi
- Initialize error reporting with no ANSI formatting.
- ThinContext
- Derive macro for implementing
ThinContext
trait on zero-sized error types.