pub struct ErrorMessageEnhancer { /* private fields */ }Expand description
Enhanced error message system for ML pipelines
Implementations§
Source§impl ErrorMessageEnhancer
impl ErrorMessageEnhancer
Sourcepub fn with_config(config: ErrorEnhancementConfig) -> Self
pub fn with_config(config: ErrorEnhancementConfig) -> Self
Create a new error message enhancer with custom configuration
Sourcepub fn enhance_error(
&self,
error: &SklearsComposeError,
) -> Result<EnhancedErrorMessage>
pub fn enhance_error( &self, error: &SklearsComposeError, ) -> Result<EnhancedErrorMessage>
Enhance an error with comprehensive diagnostics and suggestions
Sourcepub fn attempt_recovery(
&self,
error: &SklearsComposeError,
) -> Result<RecoveryOutcome>
pub fn attempt_recovery( &self, error: &SklearsComposeError, ) -> Result<RecoveryOutcome>
Attempt automatic error recovery
Sourcepub fn learn_from_resolution(
&self,
error: &SklearsComposeError,
suggestion_id: &str,
outcome: bool,
) -> Result<()>
pub fn learn_from_resolution( &self, error: &SklearsComposeError, suggestion_id: &str, outcome: bool, ) -> Result<()>
Learn from error resolution outcomes
Sourcepub fn export_statistics(&self) -> Result<ErrorEnhancementStatistics>
pub fn export_statistics(&self) -> Result<ErrorEnhancementStatistics>
Export error enhancement statistics
Trait Implementations§
Source§impl Debug for ErrorMessageEnhancer
impl Debug for ErrorMessageEnhancer
Auto Trait Implementations§
impl Freeze for ErrorMessageEnhancer
impl RefUnwindSafe for ErrorMessageEnhancer
impl Send for ErrorMessageEnhancer
impl Sync for ErrorMessageEnhancer
impl Unpin for ErrorMessageEnhancer
impl UnwindSafe for ErrorMessageEnhancer
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more