pub struct EnhancedErrorBuilder { /* private fields */ }Expand description
Enhanced error builder for creating detailed error messages
Implementations§
Source§impl EnhancedErrorBuilder
impl EnhancedErrorBuilder
pub fn new() -> Self
Sourcepub fn configuration_error(self, message: &str) -> Self
pub fn configuration_error(self, message: &str) -> Self
Create configuration error with detailed suggestions
Sourcepub fn data_compatibility_error(
self,
expected: DataShape,
actual: DataShape,
stage: &str,
) -> Self
pub fn data_compatibility_error( self, expected: DataShape, actual: DataShape, stage: &str, ) -> Self
Create data compatibility error with shape analysis
Sourcepub fn structure_error(
self,
error_type: StructureErrorType,
affected_components: Vec<String>,
) -> Self
pub fn structure_error( self, error_type: StructureErrorType, affected_components: Vec<String>, ) -> Self
Create structure error with component analysis
Sourcepub fn performance_warning(
self,
warning_type: PerformanceWarningType,
impact_level: ImpactLevel,
metrics: Option<PerformanceMetrics>,
) -> Self
pub fn performance_warning( self, warning_type: PerformanceWarningType, impact_level: ImpactLevel, metrics: Option<PerformanceMetrics>, ) -> Self
Create performance warning with optimization suggestions
Sourcepub fn resource_error(
self,
resource_type: ResourceType,
limit: f64,
current: f64,
component: &str,
) -> Self
pub fn resource_error( self, resource_type: ResourceType, limit: f64, current: f64, component: &str, ) -> Self
Create resource error with scaling suggestions
Sourcepub fn type_safety_error(
self,
violation_type: TypeViolationType,
expected_type: &str,
actual_type: &str,
stage: &str,
) -> Self
pub fn type_safety_error( self, violation_type: TypeViolationType, expected_type: &str, actual_type: &str, stage: &str, ) -> Self
Create type safety error with type conversion suggestions
Sourcepub fn suggestion(self, suggestion: &str) -> Self
pub fn suggestion(self, suggestion: &str) -> Self
Add custom suggestion
Sourcepub fn context(self, context: ErrorContext) -> Self
pub fn context(self, context: ErrorContext) -> Self
Add error context
Sourcepub fn build(self) -> PipelineError
pub fn build(self) -> PipelineError
Build the enhanced error
Trait Implementations§
Auto Trait Implementations§
impl Freeze for EnhancedErrorBuilder
impl RefUnwindSafe for EnhancedErrorBuilder
impl Send for EnhancedErrorBuilder
impl Sync for EnhancedErrorBuilder
impl Unpin for EnhancedErrorBuilder
impl UnwindSafe for EnhancedErrorBuilder
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