Enum autosar_data::AutosarDataError
source · [−]pub enum AutosarDataError {
Show 22 variants
IoErrorRead {
filename: PathBuf,
ioerror: Error,
},
IoErrorOpen {
filename: PathBuf,
ioerror: Error,
},
IoErrorWrite {
filename: PathBuf,
ioerror: Error,
},
DuplicateFilenameError {
verb: &'static str,
filename: PathBuf,
},
LexerError {
filename: PathBuf,
line: usize,
source: ArxmlLexerError,
},
ParserError {
filename: PathBuf,
line: usize,
source: ArxmlParserError,
},
OverlappingDataError {
filename: PathBuf,
path: String,
},
ItemDeleted,
InvalidPosition,
VersionIncompatible,
ElementNotIdentifiable,
ItemNameRequired,
IncorrectContentType,
ElementInsertionConflict,
InvalidSubElement,
ElementNotFound,
ShortNameRemovalForbidden,
NotReferenceElement,
InvalidReference,
DuplicateItemName,
ForbiddenMoveToSubElement,
ParentElementLocked,
}Expand description
The error type AutosarDataError wraps all errors that can be generated anywhere in the crate
Variants
IoErrorRead
IoErrorRead: An IoError that occurred while reading a file
IoErrorOpen
IoErrorOpen: an IoError that occurres while opening a file
IoErrorWrite
IoErrorWrite: An IoError that occurred while writing a file
DuplicateFilenameError
DuplicateFilenameError,
LexerError
LexerError: An error originating in the lexer, such as unclodes strings, mismatched ‘<’ and ‘>’, etc
ParserError
ParserError: A parser error
OverlappingDataError
A file could not be loaded into the project, because the Autosar paths of the new data overlapped with the Autosar paths of the existing data
ItemDeleted
An operation failed because one of the elements involved is in the deleted state and will be freed once its reference count reaches zero
InvalidPosition
A sub element could not be created at or moved to the given position
VersionIncompatible
The Autosar version of the containing file was not compatible
ElementNotIdentifiable
A function that only applies to identifiable elements was called on an element which is not identifiable
ItemNameRequired
An item name is required to perform this action
IncorrectContentType
The element has the wrong content type for the requested operation, e.g. inserting elements when the content type only allows character data
ElementInsertionConflict
Could not insert a sub element, because it conflicts with an existing sub element
InvalidSubElement
The ElementName is not a valid sub element according to the specification.
ElementNotFound
Remove operation failed: the given element is not a sub element of the element from which it was supposed to be removed
ShortNameRemovalForbidden
Remove_sub_element cannot remove the SHORT-NAME of identifiable elements, as this would render the data invalid
NotReferenceElement
get/set reference target was called for an element that is not a reference
InvalidReference
The reference is invalid
DuplicateItemName
An element could not be renamed, since this item name is already used by a different element
ForbiddenMoveToSubElement
Cannot move an element into its own sub element
ParentElementLocked
A parent element is currently locked by a different operation. The operation wa aborted to avoid a deadlock.
Trait Implementations
sourceimpl Debug for AutosarDataError
impl Debug for AutosarDataError
sourceimpl Display for AutosarDataError
impl Display for AutosarDataError
sourceimpl Error for AutosarDataError
impl Error for AutosarDataError
sourcefn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more
1.0.0 · sourcefn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()
Auto Trait Implementations
impl !RefUnwindSafe for AutosarDataError
impl Send for AutosarDataError
impl Sync for AutosarDataError
impl Unpin for AutosarDataError
impl !UnwindSafe for AutosarDataError
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more