#[non_exhaustive]pub enum ComputeError {
DivisionByZero,
NonFiniteResult,
InvalidParameter {
parameter: String,
reason: String,
},
}Expand description
Errors that can occur during compute primitive execution.
These represent semantic failures in computation, not infrastructure failures.
They map to ErrKind::SemanticError and are non-retryable.
See: B.2 in PHASE_INVARIANTS.md
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.
DivisionByZero
B.2: Division by zero is undefined.
NonFiniteResult
B.2: Result overflowed to infinity or produced NaN.
InvalidParameter
Parameter value violated primitive constraints.
Trait Implementations§
Source§impl Clone for ComputeError
impl Clone for ComputeError
Source§fn clone(&self) -> ComputeError
fn clone(&self) -> ComputeError
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 ComputeError
impl Debug for ComputeError
Source§impl Display for ComputeError
impl Display for ComputeError
impl Eq for ComputeError
Source§impl Error for ComputeError
impl Error for ComputeError
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 PartialEq for ComputeError
impl PartialEq for ComputeError
Source§fn eq(&self, other: &ComputeError) -> bool
fn eq(&self, other: &ComputeError) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for ComputeError
Auto Trait Implementations§
impl Freeze for ComputeError
impl RefUnwindSafe for ComputeError
impl Send for ComputeError
impl Sync for ComputeError
impl Unpin for ComputeError
impl UnsafeUnpin for ComputeError
impl UnwindSafe for ComputeError
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