Expand description
Structured error context and error chaining utilities.
Provides ErrorContext, ErrorChain, and ErrorContextBuilder for
attaching structured metadata (component, operation, and arbitrary key/value
pairs) to errors propagated through the media pipeline.
§Examples
use oximedia_core::error_context::{ErrorContext, ErrorChain};
let ctx = ErrorContext::new("demuxer", "read_packet", "unexpected EOF");
assert_eq!(ctx.component(), "demuxer");
let chain = ErrorChain::root(ctx);
assert_eq!(chain.depth(), 1);Structs§
- Error
Chain - A chain of
ErrorContextrecords representing an error’s call stack. - Error
Context - Structured context attached to a single error occurrence.
- Error
Context Builder - A builder that constructs an
ErrorContextwith a fluent API.