pub enum PipelineError {
Show 21 variants
InvalidConfiguration(String),
MissingParameter(String),
InvalidParameter(String),
IncompatibleStage(String),
InvalidChunk(String),
ProcessingFailed(String),
CompressionError(String),
EncryptionError(String),
IntegrityError(String),
SecurityViolation(String),
ResourceExhausted(String),
IoError(String),
DatabaseError(String),
SerializationError(String),
ValidationError(String),
PluginError(String),
TimeoutError(String),
Cancelled(String),
PipelineNotFound(String),
InternalError(String),
MetricsError(String),
}Expand description
Domain-specific errors for the pipeline processing system.
This enum represents all possible errors that can occur within the domain layer. Each variant includes a descriptive message and is designed to provide clear information about what went wrong and potentially how to fix it.
§Design Principles
- Specific: Each error type represents a specific failure mode
- Actionable: Error messages provide enough context for debugging
- Categorized: Errors are grouped by type for systematic handling
- Recoverable: Some errors indicate retry-able conditions
§Error Handling Strategy
Variants§
InvalidConfiguration(String)
MissingParameter(String)
InvalidParameter(String)
IncompatibleStage(String)
InvalidChunk(String)
ProcessingFailed(String)
CompressionError(String)
EncryptionError(String)
IntegrityError(String)
SecurityViolation(String)
ResourceExhausted(String)
IoError(String)
DatabaseError(String)
SerializationError(String)
ValidationError(String)
PluginError(String)
TimeoutError(String)
Cancelled(String)
PipelineNotFound(String)
InternalError(String)
MetricsError(String)
Implementations§
Source§impl PipelineError
impl PipelineError
Sourcepub fn invalid_config(msg: impl Into<String>) -> Self
pub fn invalid_config(msg: impl Into<String>) -> Self
Creates a new configuration error
Sourcepub fn processing_failed(msg: impl Into<String>) -> Self
pub fn processing_failed(msg: impl Into<String>) -> Self
Creates a new processing error
Sourcepub fn security_violation(msg: impl Into<String>) -> Self
pub fn security_violation(msg: impl Into<String>) -> Self
Creates a new security violation error
Sourcepub fn resource_exhausted(msg: impl Into<String>) -> Self
pub fn resource_exhausted(msg: impl Into<String>) -> Self
Creates a new resource exhausted error
Sourcepub fn database_error(msg: impl Into<String>) -> Self
pub fn database_error(msg: impl Into<String>) -> Self
Creates a new database error
Sourcepub fn internal_error(msg: impl Into<String>) -> Self
pub fn internal_error(msg: impl Into<String>) -> Self
Creates a new internal error
Sourcepub fn metrics_error(msg: impl Into<String>) -> Self
pub fn metrics_error(msg: impl Into<String>) -> Self
Creates a new metrics error
Sourcepub fn validation_error(msg: impl Into<String>) -> Self
pub fn validation_error(msg: impl Into<String>) -> Self
Creates a new validation error
Sourcepub fn cancelled_with_msg(msg: impl Into<String>) -> Self
pub fn cancelled_with_msg(msg: impl Into<String>) -> Self
Creates a cancellation error with custom message
Sourcepub fn is_recoverable(&self) -> bool
pub fn is_recoverable(&self) -> bool
Checks if the error is recoverable
Sourcepub fn is_security_error(&self) -> bool
pub fn is_security_error(&self) -> bool
Checks if the error is a security-related error
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 Error for PipelineError
impl Error for PipelineError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
Source§impl From<Error> for PipelineError
impl From<Error> for PipelineError
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