Expand description
error-path adds stable, structured operational addresses to Rust errors.
The crate is intentionally tiny:
WithErrorPathis the compatibility trait used by macros.ErrorPathis a structured operational address.- Optional features adapt
anyhow,eyre,error-stack, andstacked_errors.
§Example
use error_path::ErrorPath;
let mut error_path = ErrorPath::from_segment("http.0405");
error_path.prepend_path("login.api.request_login");
assert_eq!(error_path.to_string(), "login.api.request_login.http.0405");Structs§
- Error
Path - A structured operational error address.
Enums§
- SetPath
Delimiter Error - Error returned when the process-wide path delimiter cannot be configured.
Traits§
- Error
Path Ext - Read a structured operational address from an error.
- With
Error Path - Compatibility trait used by the generated macro code.
Functions§
- path_
delimiter - Return the process-wide path delimiter.
- set_
path_ delimiter - Set the process-wide delimiter used by
ErrorPathDisplay.