pub struct ErrorReporter { /* private fields */ }Expand description
Structured error reporter with configurable handling
Implementations§
Source§impl ErrorReporter
impl ErrorReporter
Sourcepub fn new(mode: ErrorMode, max_errors: Option<u64>) -> ErrorReporter
pub fn new(mode: ErrorMode, max_errors: Option<u64>) -> ErrorReporter
Create a new error reporter with the specified mode
Sourcepub fn with_verbose_logging(self, verbose: bool) -> ErrorReporter
pub fn with_verbose_logging(self, verbose: bool) -> ErrorReporter
Set verbose logging mode
Sourcepub fn report_warning(&mut self, error: Error)
pub fn report_warning(&mut self, error: Error)
Report a warning (always continues processing)
Sourcepub fn start_record(&mut self, record_index: u64)
pub fn start_record(&mut self, record_index: u64)
Report record processing start (for context tracking)
Sourcepub fn summary(&self) -> &ErrorSummary
pub fn summary(&self) -> &ErrorSummary
Get the current error summary
Sourcepub fn has_errors(&self) -> bool
pub fn has_errors(&self) -> bool
Check if any errors have been reported
Sourcepub fn has_warnings(&self) -> bool
pub fn has_warnings(&self) -> bool
Check if any warnings have been reported
Sourcepub fn error_count(&self) -> u64
pub fn error_count(&self) -> u64
Get total error count (excluding warnings)
Sourcepub fn warning_count(&self) -> u64
pub fn warning_count(&self) -> u64
Get total warning count
Sourcepub fn generate_report(&self) -> String
pub fn generate_report(&self) -> String
Generate a detailed error report for display
Auto Trait Implementations§
impl Freeze for ErrorReporter
impl RefUnwindSafe for ErrorReporter
impl Send for ErrorReporter
impl Sync for ErrorReporter
impl Unpin for ErrorReporter
impl UnsafeUnpin for ErrorReporter
impl UnwindSafe for ErrorReporter
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more