Expand description
Error handling module
Defines application error types and result type alias.
§Error Types
Provides various error variants covering initialization, configuration, HTTP requests, cache, etc.
§Example
use crates_docs::error::{Error, Result};
fn may_fail() -> Result<String> {
// Operation that may fail
Ok("success".to_string())
}
// Create structured error
fn create_config_error() -> Error {
Error::config("field_name", "invalid value")
}
fn create_cache_error() -> Error {
Error::cache("set", Some("key".to_string()), "operation failed")
}Enums§
- Error
- Application error type
Type Aliases§
- Result
- Result type alias