copybook-error-reporter
Structured error reporting and handling for copybook-rs processing flows.
Overview
Provides configurable error accumulation with severity classification, strict/lenient handling policies, and summary statistics. Used by the codec and CLI layers to track and report errors across large batch processing runs without losing context on individual failures.
Usage
use ;
// Create a lenient reporter that continues on errors
let mut reporter = new;
// Report errors during processing; reporter accumulates them
// reporter.report_error(some_error);
let summary = reporter.summary;
println!;
Public API
ErrorReporter— Accumulates errors with configurable stop/continue policyErrorMode—Strict(fail-fast) orLenient(continue processing)ErrorSeverity—Info,Warning,Error,FatalErrorReport— Single error with severity, timestamp, and metadataErrorSummary— Aggregate statistics across a processing run
License
AGPL-3.0-or-later