pub enum PollenError {
Show 16 variants
TaskNotFound(TaskId),
TaskNameNotFound(String),
TaskAlreadyExists(String),
InstanceNotFound(InstanceId),
NodeNotFound(NodeId),
InvalidCron(String),
InvalidSchedule(String),
Storage(StorageError),
Transport(TransportError),
Cluster(ClusterError),
Execution(ExecutionError),
Serialization(String),
Config(String),
Cancelled,
Timeout,
Internal(String),
}Expand description
Main error type for Pollen operations.
Variants§
TaskNotFound(TaskId)
Task not found by ID.
TaskNameNotFound(String)
Task not found by name.
TaskAlreadyExists(String)
Task already exists.
InstanceNotFound(InstanceId)
Task instance not found.
NodeNotFound(NodeId)
Node not found in cluster.
InvalidCron(String)
Invalid cron expression.
InvalidSchedule(String)
Invalid schedule configuration.
Storage(StorageError)
Storage error.
Transport(TransportError)
Transport error.
Cluster(ClusterError)
Cluster error.
Execution(ExecutionError)
Execution error.
Serialization(String)
Serialization error.
Config(String)
Configuration error.
Cancelled
Operation cancelled.
Timeout
Timeout.
Internal(String)
Internal error.
Trait Implementations§
Source§impl Debug for PollenError
impl Debug for PollenError
Source§impl Display for PollenError
impl Display for PollenError
Source§impl Error for PollenError
impl Error for PollenError
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<ClusterError> for PollenError
impl From<ClusterError> for PollenError
Source§fn from(source: ClusterError) -> PollenError
fn from(source: ClusterError) -> PollenError
Converts to this type from the input type.
Source§impl From<ExecutionError> for PollenError
impl From<ExecutionError> for PollenError
Source§fn from(source: ExecutionError) -> PollenError
fn from(source: ExecutionError) -> PollenError
Converts to this type from the input type.
Source§impl From<StorageError> for PollenError
impl From<StorageError> for PollenError
Source§fn from(source: StorageError) -> PollenError
fn from(source: StorageError) -> PollenError
Converts to this type from the input type.
Source§impl From<TransportError> for PollenError
impl From<TransportError> for PollenError
Source§fn from(source: TransportError) -> PollenError
fn from(source: TransportError) -> PollenError
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for PollenError
impl !RefUnwindSafe for PollenError
impl Send for PollenError
impl Sync for PollenError
impl Unpin for PollenError
impl !UnwindSafe for PollenError
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> 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> 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