pub enum MaecError {
MissingField(&'static str),
InvalidId(String),
InvalidReference(String),
SerializationError(Error),
XmlError(String),
QuickXmlDeError(DeError),
XmlSerializationError(String),
ValidationError(String),
IoError(Error),
}Expand description
Main error type for MAEC operations
Variants§
MissingField(&'static str)
Missing required field in builder
InvalidId(String)
Invalid MAEC ID format
InvalidReference(String)
Invalid reference to another object
SerializationError(Error)
JSON serialization/deserialization error
XmlError(String)
XML serialization/deserialization error
QuickXmlDeError(DeError)
Quick-XML deserialization error
XmlSerializationError(String)
Quick-XML serialization error
ValidationError(String)
Validation error
IoError(Error)
I/O error
Trait Implementations§
Source§impl Error for MaecError
impl Error for MaecError
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()
Auto Trait Implementations§
impl !RefUnwindSafe for MaecError
impl !UnwindSafe for MaecError
impl Freeze for MaecError
impl Send for MaecError
impl Sync for MaecError
impl Unpin for MaecError
impl UnsafeUnpin for MaecError
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