pub enum Error {
IndexOutOfBounds {
index: usize,
len: usize,
},
ExecutionError(String),
RuntimeError(String),
StateError(StateError),
TransformationError(String),
TypeError(String),
AnyError(Error),
BoxError(Box<dyn Error + Send + Sync + 'static>),
FmtError(Error),
IoError(Error),
Unknown(String),
}
Expand description
The Error
implementation describes the various errors that can occur within the library
Variants§
IndexOutOfBounds
ExecutionError(String)
RuntimeError(String)
StateError(StateError)
TransformationError(String)
TypeError(String)
AnyError(Error)
BoxError(Box<dyn Error + Send + Sync + 'static>)
FmtError(Error)
IoError(Error)
Unknown(String)
Implementations§
Source§impl Error
impl Error
pub fn index_out_of_bounds(index: usize, len: usize) -> Self
pub fn execution_error(field_0: String) -> Self
pub fn runtime_error(field_0: String) -> Self
pub fn state_error(field_0: StateError) -> Self
pub fn transformation_error(field_0: String) -> Self
pub fn type_error(field_0: String) -> Self
pub fn any_error(field_0: Error) -> Self
pub fn box_error(field_0: Box<dyn Error + Send + Sync + 'static>) -> Self
pub fn fmt_error(field_0: Error) -> Self
pub fn io_error(field_0: Error) -> Self
pub fn unknown(field_0: String) -> Self
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<StateError> for Error
impl From<StateError> for Error
Source§fn from(source: StateError) -> Self
fn from(source: StateError) -> 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 !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