pub enum CmlError {
XmlError(Error),
AttrError(AttrError),
InvalidStructure(String),
MissingAttribute(String),
InvalidAttribute(String),
ValidationError(String),
DuplicateId(String),
ReferenceNotFound(String),
IoError(Error),
Utf8Error(FromUtf8Error),
}Expand description
Errors that can occur during CML processing
Variants§
XmlError(Error)
AttrError(AttrError)
InvalidStructure(String)
MissingAttribute(String)
InvalidAttribute(String)
ValidationError(String)
DuplicateId(String)
ReferenceNotFound(String)
IoError(Error)
Utf8Error(FromUtf8Error)
Trait Implementations§
Source§impl Error for CmlError
impl Error for CmlError
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<FromUtf8Error> for CmlError
impl From<FromUtf8Error> for CmlError
Source§fn from(source: FromUtf8Error) -> Self
fn from(source: FromUtf8Error) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for CmlError
impl !RefUnwindSafe for CmlError
impl Send for CmlError
impl Sync for CmlError
impl Unpin for CmlError
impl !UnwindSafe for CmlError
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