Skip to main content

Crate nexcore_error

Crate nexcore_error 

Source
Expand description

Zero-dependency error handling for nexcore ecosystem.

Replaces thiserror and anyhow with zero external dependencies.

Modules§

prelude
Commonly used items for glob import.

Macros§

bail
Return early with an error.
ensure
Return early with an error if a condition is not satisfied.
nexerror
Creates a new NexError from a format string.

Structs§

NexError
A type-erased error that can hold any error type.

Traits§

Context
Extension trait to add context to errors.

Type Aliases§

Result
A convenient Result type alias using NexError.

Derive Macros§

Error
Re-export the derive macro so users can use nexcore_error::Error; Derive Display and std::error::Error for an enum or struct.