Crate bigerror

Source

Re-exports§

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::*;

Modules§

attachment
context

Macros§

__field
bail
Creates a Report and returns it as Result.
ensure
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
report
Creates a Report from the given parameters.
ty

Structs§

Report
Contains a Frame stack consisting of Contexts and attachments.

Traits§

AttachExt
ClearResult
Context
Defines the current context of a Report.
IntoContext
LogError
OptionReport
Used to produce NotFound reports from an Option
ReportAs
Extends [error_stack::IntoReport] to allow an implicit E -> Report<C> inference
ResultExt
Extension trait for Result to provide context information on Reports.
ResultIntoContext
ThinContext
ThinContext behaves as an error_stack::ContextExt ideally used for zero sized errors or ones that hold a 'static ref/value

Functions§

init_colour
init_emphasis
init_no_ansi

Derive Macros§

ThinContext