[−]Struct uvm_install2::unity::UvmVersionError
The Error type.
This tuple struct is made of two elements:
- an
ErrorKindwhich is used to determine the type of the error. - An internal
State, not meant for direct use outside oferror_chaininternals, containing:- a backtrace, generated when the error is created.
- an error chain, used for the implementation of
Error::cause().
Methods
impl UvmVersionError
pub fn from_kind(kind: UvmVersionErrorKind) -> UvmVersionError
Constructs an error from a kind, and generates a backtrace.
pub fn with_chain<E, K>(error: E, kind: K) -> UvmVersionError where
E: Error + Send + 'static,
K: Into<UvmVersionErrorKind>,
E: Error + Send + 'static,
K: Into<UvmVersionErrorKind>,
Constructs a chained error from another error and a kind, and generates a backtrace.
pub fn with_boxed_chain<K>(
error: Box<dyn Error + 'static + Send>,
kind: K
) -> UvmVersionError where
K: Into<UvmVersionErrorKind>,
error: Box<dyn Error + 'static + Send>,
kind: K
) -> UvmVersionError where
K: Into<UvmVersionErrorKind>,
Construct a chained error from another boxed error and a kind, and generates a backtrace
pub fn kind(&self) -> &UvmVersionErrorKind
Returns the kind of the error.
pub fn iter(&self) -> Iter
Iterates over the error chain.
pub fn backtrace(&self) -> Option<&Backtrace>
Returns the backtrace associated with this error.
pub fn chain_err<F, EK>(self, error: F) -> UvmVersionError where
EK: Into<UvmVersionErrorKind>,
F: FnOnce() -> EK,
EK: Into<UvmVersionErrorKind>,
F: FnOnce() -> EK,
Extends the error chain with a new entry.
pub fn description(&self) -> &str
A short description of the error.
This method is identical to Error::description()
Trait Implementations
impl ChainedError for UvmVersionError
type ErrorKind = UvmVersionErrorKind
Associated kind type.
fn new(kind: UvmVersionErrorKind, state: State) -> UvmVersionError
fn from_kind(
kind: <UvmVersionError as ChainedError>::ErrorKind
) -> UvmVersionError
kind: <UvmVersionError as ChainedError>::ErrorKind
) -> UvmVersionError
fn with_chain<E, K>(error: E, kind: K) -> UvmVersionError where
E: Error + Send + 'static,
K: Into<<UvmVersionError as ChainedError>::ErrorKind>,
E: Error + Send + 'static,
K: Into<<UvmVersionError as ChainedError>::ErrorKind>,
fn kind(&self) -> &<UvmVersionError as ChainedError>::ErrorKind
fn iter(&self) -> Iter
fn chain_err<F, EK>(self, error: F) -> UvmVersionError where
EK: Into<UvmVersionErrorKind>,
F: FnOnce() -> EK,
EK: Into<UvmVersionErrorKind>,
F: FnOnce() -> EK,
fn backtrace(&self) -> Option<&Backtrace>
fn extract_backtrace(
e: &(dyn Error + 'static + Send)
) -> Option<InternalBacktrace>
e: &(dyn Error + 'static + Send)
) -> Option<InternalBacktrace>
fn display_chain(&'a self) -> DisplayChain<'a, Self>[src]
impl Debug for UvmVersionError
impl Display for UvmVersionError
impl From<String> for UvmVersionError
fn from(s: String) -> UvmVersionError
impl From<Error> for UvmVersionError
fn from(e: Error) -> UvmVersionError
impl From<UvmVersionError> for UvmVersionErrorKind
fn from(e: UvmVersionError) -> UvmVersionErrorKind
impl From<UvmVersionErrorKind> for UvmVersionError
fn from(e: UvmVersionErrorKind) -> UvmVersionError
impl From<Error> for UvmVersionError
fn from(e: Error) -> UvmVersionError
impl From<UvmVersionError> for UvmError
fn from(e: UvmVersionError) -> UvmError
impl<'a> From<&'a str> for UvmVersionError
fn from(s: &'a str) -> UvmVersionError
impl Error for UvmVersionError
Auto Trait Implementations
impl Send for UvmVersionError
impl !Sync for UvmVersionError
impl Unpin for UvmVersionError
impl !UnwindSafe for UvmVersionError
impl !RefUnwindSafe for UvmVersionError
Blanket Implementations
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T> From<T> for T[src]
impl<T> ToString for T where
T: Display + ?Sized, [src]
T: Display + ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>[src]
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T[src]
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
U: TryFrom<T>,
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,