#[non_exhaustive]pub enum PolarisError {
Show 17 variants
ConnectionFailed(String),
SchedulingFailed(String),
TaskExecutionFailed(String),
TaskTimeout(Duration),
NodeNotFound(String),
NodeUnavailable(String),
InvalidConfig(String),
SerializationError(String),
NetworkError(String),
StorageError(String),
AuthenticationFailed(String),
AuthorizationFailed(String),
ResourceLimitExceeded(String),
DagCycleDetected,
InvalidStateTransition {
from: String,
to: String,
},
Io(Error),
Other(String),
}Expand description
The main error type for Polaris operations.
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.
ConnectionFailed(String)
Error connecting to cluster
SchedulingFailed(String)
Error during task scheduling
TaskExecutionFailed(String)
Task execution error
TaskTimeout(Duration)
Task timeout
NodeNotFound(String)
Node not found
Node unavailable
InvalidConfig(String)
Invalid configuration
SerializationError(String)
Serialization error
NetworkError(String)
Network error
StorageError(String)
Storage error
AuthenticationFailed(String)
Authentication error
AuthorizationFailed(String)
Authorization error
ResourceLimitExceeded(String)
Resource limit exceeded
DagCycleDetected
DAG cycle detected
InvalidStateTransition
Invalid task state transition
Io(Error)
IO error
Other(String)
Other error
Implementations§
Source§impl PolarisError
impl PolarisError
Sourcepub fn connection_failed(msg: impl Display) -> PolarisError
pub fn connection_failed(msg: impl Display) -> PolarisError
Create a connection error
Sourcepub fn scheduling_failed(msg: impl Display) -> PolarisError
pub fn scheduling_failed(msg: impl Display) -> PolarisError
Create a scheduling error
Sourcepub fn task_execution_failed(msg: impl Display) -> PolarisError
pub fn task_execution_failed(msg: impl Display) -> PolarisError
Create a task execution error
Sourcepub fn network_error(msg: impl Display) -> PolarisError
pub fn network_error(msg: impl Display) -> PolarisError
Create a network error
Sourcepub fn storage_error(msg: impl Display) -> PolarisError
pub fn storage_error(msg: impl Display) -> PolarisError
Create a storage error
Sourcepub fn other(msg: impl Display) -> PolarisError
pub fn other(msg: impl Display) -> PolarisError
Create an other error
Trait Implementations§
Source§impl Debug for PolarisError
impl Debug for PolarisError
Source§impl Display for PolarisError
impl Display for PolarisError
Source§impl Error for PolarisError
impl Error for PolarisError
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 PolarisError
impl From<Error> for PolarisError
Source§fn from(source: Error) -> PolarisError
fn from(source: Error) -> PolarisError
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for PolarisError
impl !RefUnwindSafe for PolarisError
impl Send for PolarisError
impl Sync for PolarisError
impl Unpin for PolarisError
impl !UnwindSafe for PolarisError
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