pub enum PipelineError {
IoError(String),
ItemError(String),
DatabaseError(String),
SerializationError(String),
CsvError(String),
Other(String),
}Expand description
Error type for item processing pipelines.
PipelineError represents errors that can occur during the processing
of scraped items in pipelines, including I/O errors, database errors,
serialization failures, and CSV operations.
§Variants
IoError: File system or I/O operation failuresItemError: General item processing failuresDatabaseError: Database operation errors (e.g., SQLite)SerializationError: JSON/serialization failuresCsvError: CSV reading/writing errorsOther: Other unspecified pipeline errors
§Example
use spider_util::error::PipelineError;
let err = PipelineError::IoError("File not found".to_string());
println!("Pipeline error: {}", err);Variants§
IoError(String)
I/O operation error.
ItemError(String)
Item processing error.
DatabaseError(String)
Database operation error.
SerializationError(String)
Serialization error.
CsvError(String)
CSV operation error.
Other(String)
Other unspecified pipeline 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
Source§fn from(err: Error) -> PipelineError
fn from(err: Error) -> PipelineError
Converts to this type from the input type.
Source§impl From<Error> for PipelineError
impl From<Error> for PipelineError
Source§fn from(err: Error) -> PipelineError
fn from(err: Error) -> PipelineError
Converts to this type from the input type.
Source§impl From<Error> for PipelineError
impl From<Error> for PipelineError
Source§fn from(err: Error) -> PipelineError
fn from(err: Error) -> PipelineError
Converts to this type from the input type.
Source§impl From<Error> for PipelineError
impl From<Error> for PipelineError
Source§fn from(err: Error) -> PipelineError
fn from(err: Error) -> PipelineError
Converts to this type from the input type.
Source§impl From<PipelineError> for SpiderError
impl From<PipelineError> for SpiderError
Source§fn from(source: PipelineError) -> SpiderError
fn from(source: PipelineError) -> SpiderError
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 UnsafeUnpin 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> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Source§impl<T> ToStringFallible for Twhere
T: Display,
impl<T> ToStringFallible for Twhere
T: Display,
Source§fn try_to_string(&self) -> Result<String, TryReserveError>
fn try_to_string(&self) -> Result<String, TryReserveError>
ToString::to_string, but without panic on OOM.