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) -> Self
fn from(source: ClusterError) -> Self
Converts to this type from the input type.
Source§impl From<ExecutionError> for PollenError
impl From<ExecutionError> for PollenError
Source§fn from(source: ExecutionError) -> Self
fn from(source: ExecutionError) -> Self
Converts to this type from the input type.
Source§impl From<StorageError> for PollenError
impl From<StorageError> for PollenError
Source§fn from(source: StorageError) -> Self
fn from(source: StorageError) -> Self
Converts to this type from the input type.
Source§impl From<TransportError> for PollenError
impl From<TransportError> for PollenError
Source§fn from(source: TransportError) -> Self
fn from(source: TransportError) -> Self
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