Expand description
Error types for the SADI dependency injection container.
This module defines a lightweight error model used across the container to describe failures that can occur during service registration, resolution, scope handling, and module initialization.
§Design
ErrorKindcaptures the error category.Errorstores the category and a human-readable message.
The helpers in Error are provided to keep call sites concise and to
maintain consistent error messages.
§Feature Flags
tracing: logs errors when they are created.debug: enables extra diagnostic formatting inDisplay.
§Examples
use sadi::error::Error;
let err = Error::service_not_provided("MyService");
assert!(err.message.contains("MyService"));Structs§
- Error
- Container error structure.
Enums§
- Error
Kind - Error categories for the container.