pub enum Error {
Name(NameError),
Domain(DomainError),
Attribute(AttributeError),
Parameter(ParameterError),
Derivation(DerivationError),
Regex(Error),
Element(ElementError),
Trial(TrialError),
}Expand description
Errors produced by paramodel-elements.
Variants§
Name(NameError)
A validated name (parameter, element, port, …) failed its construction check.
Domain(DomainError)
A domain constructor or operation was rejected.
Attribute(AttributeError)
An attribute layer constructor or validation was rejected.
Parameter(ParameterError)
A parameter constructor or builder setter was rejected.
Derivation(DerivationError)
A derived-parameter expression failed at bind time.
Regex(Error)
A regex pattern failed to compile.
Element(ElementError)
An element-level validation or construction was rejected.
Trial(TrialError)
A trial constructor (assignments, sampling strategy, …) rejected its inputs.
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()
Source§impl From<AttributeError> for Error
impl From<AttributeError> for Error
Source§fn from(source: AttributeError) -> Self
fn from(source: AttributeError) -> Self
Converts to this type from the input type.
Source§impl From<DerivationError> for Error
impl From<DerivationError> for Error
Source§fn from(source: DerivationError) -> Self
fn from(source: DerivationError) -> Self
Converts to this type from the input type.
Source§impl From<DomainError> for Error
impl From<DomainError> for Error
Source§fn from(source: DomainError) -> Self
fn from(source: DomainError) -> Self
Converts to this type from the input type.
Source§impl From<ElementError> for Error
impl From<ElementError> for Error
Source§fn from(source: ElementError) -> Self
fn from(source: ElementError) -> Self
Converts to this type from the input type.
Source§impl From<ParameterError> for Error
impl From<ParameterError> for Error
Source§fn from(source: ParameterError) -> Self
fn from(source: ParameterError) -> Self
Converts to this type from the input type.
Source§impl From<TrialError> for Error
impl From<TrialError> for Error
Source§fn from(source: TrialError) -> Self
fn from(source: TrialError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for Error
impl RefUnwindSafe for Error
impl Send for Error
impl Sync for Error
impl Unpin for Error
impl UnsafeUnpin for Error
impl UnwindSafe 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