#[non_exhaustive]pub enum AutosarAbstractionError {
ConversionError {
element: Element,
dest: String,
},
ValueConversionError {
value: String,
dest: String,
},
ModelError(AutosarDataError),
InvalidPath(String),
ItemAlreadyExists,
InvalidParameter(String),
}
Expand description
The error type AutosarAbstractionError
wraps all errors from the crate
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.
ConversionError
converting an autosar-data element to a class in the abstract model failed
Fields
ValueConversionError
converting an autosar-data element to a class in the abstract model failed
Fields
ModelError(AutosarDataError)
ModelError
wraps AutosarDataError
errors from autosar-data operations, e.g.
AutosarDataError::ItemDeleted
, AutosarDataError::IncorrectContentType
, …
InvalidPath(String)
an invalid Autosar path was passed as a parameter
ItemAlreadyExists
an item could not be created because another item already fulfills its role in the model
InvalidParameter(String)
the function parameter has an invalid value
Trait Implementations§
Source§impl Debug for AutosarAbstractionError
impl Debug for AutosarAbstractionError
Source§impl Display for AutosarAbstractionError
impl Display for AutosarAbstractionError
Source§impl Error for AutosarAbstractionError
impl Error for AutosarAbstractionError
1.30.0 · 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<AutosarDataError> for AutosarAbstractionError
impl From<AutosarDataError> for AutosarAbstractionError
Source§fn from(err: AutosarDataError) -> Self
fn from(err: AutosarDataError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for AutosarAbstractionError
impl !RefUnwindSafe for AutosarAbstractionError
impl Send for AutosarAbstractionError
impl Sync for AutosarAbstractionError
impl Unpin for AutosarAbstractionError
impl !UnwindSafe for AutosarAbstractionError
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