pub enum PipelineError {
ConfigurationError {
message: String,
suggestions: Vec<String>,
context: ErrorContext,
},
DataCompatibilityError {
expected: DataShape,
actual: DataShape,
stage: String,
suggestions: Vec<String>,
},
StructureError {
error_type: StructureErrorType,
affected_components: Vec<String>,
suggestions: Vec<String>,
},
PerformanceWarning {
warning_type: PerformanceWarningType,
impact_level: ImpactLevel,
suggestions: Vec<String>,
metrics: Option<PerformanceMetrics>,
},
ResourceError {
resource_type: ResourceType,
limit: f64,
current: f64,
component: String,
suggestions: Vec<String>,
},
TypeSafetyError {
violation_type: TypeViolationType,
expected_type: String,
actual_type: String,
stage: String,
suggestions: Vec<String>,
},
}Expand description
Enhanced error types specific to pipeline composition
Variants§
ConfigurationError
Configuration errors with suggestions
DataCompatibilityError
Data compatibility issues
StructureError
Pipeline structure errors
PerformanceWarning
Performance warnings that may impact execution
Fields
§
warning_type: PerformanceWarningType§
impact_level: ImpactLevel§
metrics: Option<PerformanceMetrics>ResourceError
Resource constraint violations
Fields
§
resource_type: ResourceTypeTypeSafetyError
Type safety violations in pipeline composition
Implementations§
Source§impl PipelineError
Convenience functions for creating enhanced errors
impl PipelineError
Convenience functions for creating enhanced errors
Sourcepub fn configuration(message: &str) -> Self
pub fn configuration(message: &str) -> Self
Create a configuration error with suggestions
Sourcepub fn data_compatibility(
expected: DataShape,
actual: DataShape,
stage: &str,
) -> Self
pub fn data_compatibility( expected: DataShape, actual: DataShape, stage: &str, ) -> Self
Create a data compatibility error
Sourcepub fn performance_warning(
warning_type: PerformanceWarningType,
impact_level: ImpactLevel,
metrics: Option<PerformanceMetrics>,
) -> Self
pub fn performance_warning( warning_type: PerformanceWarningType, impact_level: ImpactLevel, metrics: Option<PerformanceMetrics>, ) -> Self
Create a performance warning
Trait Implementations§
Source§impl Clone for PipelineError
impl Clone for PipelineError
Source§fn clone(&self) -> PipelineError
fn clone(&self) -> PipelineError
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for PipelineError
impl Debug for PipelineError
Source§impl Display for PipelineError
impl Display for PipelineError
Source§impl From<PipelineError> for SklearsError
impl From<PipelineError> for SklearsError
Source§fn from(error: PipelineError) -> Self
fn from(error: PipelineError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for PipelineError
impl RefUnwindSafe for PipelineError
impl Send for PipelineError
impl Sync for PipelineError
impl Unpin for PipelineError
impl UnwindSafe for PipelineError
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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