pub struct PipelineError<T: Debug + Clone + Send + Sync> { /* private fields */ }Expand description
An error that occurred during pipeline execution.
This struct wraps a StreamError and provides pipeline-specific error information.
Implementations§
Source§impl<T: Debug + Clone + Send + Sync> PipelineError<T>
impl<T: Debug + Clone + Send + Sync> PipelineError<T>
Sourcepub fn new<E>(
error: E,
context: ErrorContext<T>,
component: ComponentInfo,
) -> Self
pub fn new<E>( error: E, context: ErrorContext<T>, component: ComponentInfo, ) -> Self
Creates a new PipelineError from an error, context, and component information.
§Arguments
error- The underlying error that occurred.context- The error context containing details about when and where the error occurred.component- Information about the component where the error occurred.
§Returns
A new PipelineError instance.
Sourcepub fn from_stream_error(error: StreamError<T>) -> Self
pub fn from_stream_error(error: StreamError<T>) -> Self
Sourcepub fn context(&self) -> &ErrorContext<T>
pub fn context(&self) -> &ErrorContext<T>
Returns a reference to the error context.
§Returns
A reference to the ErrorContext associated with this error.
Sourcepub fn component(&self) -> &ComponentInfo
pub fn component(&self) -> &ComponentInfo
Returns a reference to the component information.
§Returns
A reference to the ComponentInfo associated with this error.
Trait Implementations§
Source§impl<T: Debug + Clone + Send + Sync> Error for PipelineError<T>
impl<T: Debug + Clone + Send + Sync> Error for PipelineError<T>
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()
Auto Trait Implementations§
impl<T> Freeze for PipelineError<T>where
T: Freeze,
impl<T> !RefUnwindSafe for PipelineError<T>
impl<T> Send for PipelineError<T>
impl<T> Sync for PipelineError<T>
impl<T> Unpin for PipelineError<T>where
T: Unpin,
impl<T> !UnwindSafe for PipelineError<T>
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