[][src]Crate anomaly

anomaly.rs: Error context library with support for type-erased sources and backtraces

Re-exports

pub use backtrace;

Macros

ensure

Ensure a condition holds, returning an error if it doesn't (ala assert)

fail

Create and return an error with a formatted Message.

format_err

Create a new error (of a given kind) with a formatted Message as its source.

Structs

Context

Error context

Message

Error message type: provide additional context with a string.

Type Definitions

BoxError

Box containing a thread-safe + 'static error suitable for use as a as an std::error::Error::source.