#[non_exhaustive]pub enum Error {
SourceFailed {
source_name: String,
reason: String,
},
ReadFailed {
path: PathBuf,
reason: String,
},
CorruptData {
path: PathBuf,
reason: String,
},
EmptySource {
pattern: String,
},
Shutdown,
TransformFailed {
index: u64,
reason: String,
},
CollateFailed {
reason: String,
},
Io(Arc<Error>),
InvalidPattern(String),
InvalidConfig {
reason: String,
},
}Expand description
All errors that can occur in the pipeline.
Note: This enum is #[non_exhaustive] because the pipeline architecture
is designed to be extensible. We anticipate adding new variants in the future
as we introduce new hardware integrations and data processing stages.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
SourceFailed
A source failed to initialize or advance safely.
ReadFailed
A source file could not be read.
CorruptData
A source file was corrupt or unparseable.
EmptySource
No files matched the source pattern.
Shutdown
The pipeline was shut down (Ctrl+C or explicit stop).
TransformFailed
A user-provided transform function failed.
CollateFailed
Collation of a batch failed.
Io(Arc<Error>)
An I/O error occurred.
InvalidPattern(String)
A glob pattern was invalid.
InvalidConfig
Pipeline configuration was invalid.
Trait Implementations§
Source§impl Error for Error
impl Error for Error
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<PatternError> for Error
impl From<PatternError> for Error
Source§fn from(e: PatternError) -> Self
fn from(e: PatternError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl !RefUnwindSafe for Error
impl !UnwindSafe for Error
impl Freeze for Error
impl Send for Error
impl Sync for Error
impl Unpin for Error
impl UnsafeUnpin for Error
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