Enum simics::error::Error

source ·
pub enum Error {
Show 41 variants AttrValueType { actual: AttrKind, expected: AttrKind, reason: String, }, AttrValueListIndexOutOfBounds { index: usize, length: usize, }, AttrValueListTooLarge { length: usize, }, AttrValueDictIndexOutOfBounds { index: usize, size: usize, }, AttrValueDictTooLarge { size: usize, }, InvalidNullDataSize, ToAttrValueConversionError { ty: String, }, FromAttrValueConversionError { ty: String, }, ToAttrValueTypeConversionError { ty: String, }, FromAttrValueTypeConversionError { ty: String, reason: String, }, NestedToAttrValueConversionError { ty: String, source: Box<Error>, }, NestedFromAttrValueConversionError { ty: String, source: Box<Error>, }, NestedToAttrValueTypeConversionError { ty: String, source: Box<Error>, }, NestedFromAttrValueTypeConversionError { ty: String, source: Box<Error>, }, AttrValueDictMissingKey { key: String, }, NonHomogeneousList, NonHomogeneousDict, ToString, FileLookup { file: String, }, CreateClass { name: String, message: String, }, RegisterInterface { name: String, message: String, }, ClassNotFound { name: String, }, ObjectNotFound { name: String, }, CreateObject { message: String, }, CurrentCheckpointDir { message: String, }, NoEventFound, NoInterfaceMethod { method: String, }, SimicsException { exception: SimException, msg: String, }, HapRegistrationType, HapDeleteType, ValueTooLarge { expected: usize, actual: usize, }, NotADirectory { path: PathBuf, }, UnrecognizedLibraryTypeExtension { library_type: String, }, FileNotFoundInDirectory { directory: PathBuf, pattern: String, }, TryFromIntError(TryFromIntError), Utf8Error(Utf8Error), NulError(NulError), IoError(Error), RegexError(Error), Other(Error), Infallible(Infallible),
}
Expand description

SIMICS errors, including internal and APIs used

Variants§

§

AttrValueType

Attribute value type mismatch

Fields

§actual: AttrKind

The value that could not be converted The actual kind of the Attrvalue

§expected: AttrKind

The expected kind of the AttrValue

§reason: String

The reason the conversion failed

§

AttrValueListIndexOutOfBounds

An attribute value list was indexed out of bounds

Fields

§index: usize

The requested index

§length: usize

The length of the list

§

AttrValueListTooLarge

A list was too large, this is rare as the list size limit is extremely large.

Fields

§length: usize

The actual length of the list

§

AttrValueDictIndexOutOfBounds

An attribute value dictionary was indexed out of bounds

Fields

§index: usize

The requested index

§size: usize

The size of the dictionary

§

AttrValueDictTooLarge

An attribute value dictionary was too large. This is rare as teh size limit is extremely large.

Fields

§size: usize

The size of the dictionary

§

InvalidNullDataSize

Null attribute value data construction attempted without a zero size

§

ToAttrValueConversionError

Could not convert a type to an AttrValue

Fields

§ty: String

The name of the type that could not be converted

§

FromAttrValueConversionError

Could not convert from an attribute value to a type

Fields

§ty: String

The attribute value that could not be converted from The type the value could not be converted into

§

ToAttrValueTypeConversionError

Could not convert to an attribute value type from a type

Fields

§ty: String

The type that could not be converted to an attribute value type

§

FromAttrValueTypeConversionError

Could not convert from an attribute value type to a type

Fields

§ty: String

The value that could not be converted from an attribute value type The type that could not be converted from an attribute value type

§reason: String

The reason the conversion failed

§

NestedToAttrValueConversionError

Could not convert to an attribute value from a type, because of a nested error

Fields

§ty: String

The type that could not be converted to an attribute value

§source: Box<Error>

The nested error that caused this conversion to fail

§

NestedFromAttrValueConversionError

Could not convert from an attribute value to a type, because of a nested error

Fields

§ty: String

The value that could not be converted The type that the value could not be converted into

§source: Box<Error>

The nested error that caused this conversion to fail

§

NestedToAttrValueTypeConversionError

Could not convert to an attribute value type from a type, because of a nested error

Fields

§ty: String

The type that could not be converted to an attribute value type

§source: Box<Error>

The nested error that caused this conversion to fail

§

NestedFromAttrValueTypeConversionError

could not convert from an attribute value type to a type, because of a nested error

Fields

§ty: String

The type that could not be converted from an attribute value type

§source: Box<Error>

The nested error that caused this conversion to fail

§

AttrValueDictMissingKey

A key was not found in an attribute value dictionary

Fields

§key: String

The key that was not found

§

NonHomogeneousList

An attribute value list was non-homogeneous during an operation that required a homogeneous list

§

NonHomogeneousDict

An attribute value dictionary was non-homogeneous during an operation that required a homogeneous dictionary

§

ToString

Error converting a value to a string

§

FileLookup

A file was not found

Fields

§file: String

The file that was not found

§

CreateClass

A class creation operation failed

Fields

§name: String

The name of the class to be created

§message: String

The error message

§

RegisterInterface

Registration of an interface failed

Fields

§name: String

The name of the interface that failed to register

§message: String

The error message

§

ClassNotFound

A class could not be found

Fields

§name: String

The name of the class that could not be found

§

ObjectNotFound

An object could not be found

Fields

§name: String

The name of the object that could not be found

§

CreateObject

Object creation failed

Fields

§message: String

The reason object creation failed

§

CurrentCheckpointDir

A checkpoint directory was missing when it was required

Fields

§message: String

The source error message

§

NoEventFound

An event matching a query was not found

§

NoInterfaceMethod

An interface did not have a given method

Fields

§method: String

The name of the missing method

§

SimicsException

An internal error that comes from the sys API. These exceptions are wrapped in a message and reported as Rust errors

Fields

§exception: SimException

The inner exception

§msg: String

The string describing the exception

§

HapRegistrationType

An error attempting to register a hap with an unsupported type

§

HapDeleteType

An error attempting to delete a hap with an unsupported type

§

ValueTooLarge

A value was too large

Fields

§expected: usize

The expected size

§actual: usize

The actual size

§

NotADirectory

A path that should have been a directory was not

Fields

§path: PathBuf

The path

§

UnrecognizedLibraryTypeExtension

An extension of a library file was not recognized

Fields

§library_type: String

The file

§

FileNotFoundInDirectory

A file could not be found matching a given pattern

Fields

§directory: PathBuf

The directory that was searched

§pattern: String

The pattern that was searched for

§

TryFromIntError(TryFromIntError)

A wrapped std::num::TryFromIntError

§

Utf8Error(Utf8Error)

A wrapped std::str::Utf8Error

§

NulError(NulError)

A wrapped std::ffi::NulError

§

IoError(Error)

A wrapped std::io::Error

§

RegexError(Error)

A wrapped std::path::StripPrefixError

§

Other(Error)

A wrapped anyhow::Error

§

Infallible(Infallible)

A wrapped std::convert::Infallible

Trait Implementations§

source§

impl Debug for Error

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Display for Error

source§

fn fmt(&self, __formatter: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Error for Error

source§

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

👎Deprecated since 1.42.0: use the Display impl or to_string()
1.0.0 · source§

fn cause(&self) -> Option<&dyn Error>

👎Deprecated since 1.33.0: replaced by Error::source, which can support downcasting
source§

fn provide<'a>(&'a self, request: &mut Request<'a>)

🔬This is a nightly-only experimental API. (error_generic_member_access)
Provides type-based access to context intended for error reports. Read more
source§

impl From<Error> for Error

source§

fn from(source: Error) -> Self

Converts to this type from the input type.
source§

impl From<Error> for Error

source§

fn from(source: Error) -> Self

Converts to this type from the input type.
source§

impl From<Error> for Error

source§

fn from(source: Error) -> Self

Converts to this type from the input type.
source§

impl From<Infallible> for Error

source§

fn from(source: Infallible) -> Self

Converts to this type from the input type.
source§

impl From<NulError> for Error

source§

fn from(source: NulError) -> Self

Converts to this type from the input type.
source§

impl From<TryFromIntError> for Error

source§

fn from(source: TryFromIntError) -> Self

Converts to this type from the input type.
source§

impl From<Utf8Error> for Error

source§

fn from(source: Utf8Error) -> 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> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> ToString for T
where T: Display + ?Sized,

source§

default fn to_string(&self) -> String

Converts the given value to a String. Read more
source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

source§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.