#[non_exhaustive]pub enum Error {
Degenerate,
MissingDensity,
Reparse {
code: Code,
detail: String,
},
Material(Error),
Nuclei(Error),
Mcnp(Error),
Alara(Error),
Fluka(Error),
ArmiKey {
key: String,
reason: String,
},
}Expand description
Errors raised while emitting cards.
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.
Degenerate
Material is empty or its masses sum to a non-positive value.
MissingDensity
A dialect needs a mass density but neither options nor material has one.
Reparse
The emitted text failed to re-parse with the code’s own reader.
Material(Error)
Material-layer failure (mass tables, fractions).
Nuclei(Error)
Nuclide-dialect failure.
Mcnp(Error)
MCNP reader failure during re-parse verification.
Alara(Error)
ALARA reader failure during re-parse verification.
Fluka(Error)
FLUKA naming failure.
ArmiKey
An ARMI mass-fraction key (or its value) was rejected by the v1
caller-side rules in armi: elemental keys, bare AM242, and
negative/non-finite masses are caller errors.
Trait Implementations§
Source§impl Error for Error
impl Error for Error
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()
Auto Trait Implementations§
impl !RefUnwindSafe for Error
impl !UnwindSafe for Error
impl Freeze for Error
impl Send for Error
impl Sync for Error
impl Unpin for Error
impl UnsafeUnpin for Error
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