Skip to main content

Module error

Module error 

Source
Expand description

Top-level error type for mnem-core.

Each module defines its own thiserror-based error enum that From-converts into Error. Public-facing APIs return Result<T, Error>.

mnem-core never panics on user input. Invariant violations that are logically impossible (e.g. a NodeId of the wrong length after validated construction) use debug_assert! in debug builds and return Error in release builds.

Enums§

CodecError
Errors from crate::codec - canonical encode/decode.
Error
Top-level error type returned by mnem-core public APIs.
IdError
Errors from crate::id - stable IDs, multihash, CID, link.
ObjectError
Errors from crate::objects - Node/Edge/Tree/… validation and decode.
RepoError
Errors from crate::repo - repository lifecycle operations.
SignError
Errors from crate::sign - commit / operation signing + verification.
StoreError
Errors from crate::store - blockstore operations.

Type Aliases§

Result
Convenient result alias.