pub enum ComputeError {
Show 13 variants
MissingBlock {
name: &'static str,
},
MissingColumn {
block: &'static str,
col: &'static str,
},
MissingSimBox,
DimensionMismatch {
expected: usize,
got: usize,
what: &'static str,
},
BadShape {
expected: String,
got: String,
},
NonFinite {
where_: &'static str,
index: usize,
},
OutOfRange {
field: &'static str,
value: String,
},
EmptyInput,
CyclicDependency {
nodes: Vec<NodeId>,
},
MissingInput {
slot: NodeId,
},
TypeMismatch {
slot: NodeId,
expected: &'static str,
got: &'static str,
},
Node {
node_id: NodeId,
source: Box<ComputeError>,
},
MolRs(MolRsError),
}Expand description
Error type for compute operations.
Variants§
MissingBlock
Required block not found in Frame.
MissingColumn
Required column not found in a block.
MissingSimBox
Frame has no SimBox but the compute requires one.
DimensionMismatch
Array dimensions do not match expectations.
BadShape
A composite value has the wrong shape (e.g. ragged matrix).
NonFinite
Non-finite value (NaN / ±Inf) at the given flat index of the named field.
OutOfRange
Scalar input out of its valid range.
EmptyInput
frames slice is empty but the compute needs at least one frame.
CyclicDependency
Graph DAG contains a cycle involving these nodes.
MissingInput
Inputs did not bind a value for this input slot.
TypeMismatch
Value stored at a slot has a different type than the accessor expects.
Node
A compute node failed; source carries the original error, node_id
identifies which node in the Graph raised it.
MolRs(MolRsError)
Forwarded from molrs-core.
Trait Implementations§
Source§impl Debug for ComputeError
impl Debug for ComputeError
Source§impl Display for ComputeError
impl Display for ComputeError
Source§impl Error for ComputeError
impl Error for ComputeError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()
Source§impl From<MolRsError> for ComputeError
impl From<MolRsError> for ComputeError
Source§fn from(err: MolRsError) -> Self
fn from(err: MolRsError) -> Self
Auto Trait Implementations§
impl !RefUnwindSafe for ComputeError
impl !UnwindSafe for ComputeError
impl Freeze for ComputeError
impl Send for ComputeError
impl Sync for ComputeError
impl Unpin for ComputeError
impl UnsafeUnpin 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
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>
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>
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