pub enum Error {
Io(Arc<Error>),
Syntax(SyntaxError),
IllFormed(IllFormedError),
InvalidAttr(AttrError),
Encoding(EncodingError),
Escape(EscapeError),
Namespace(NamespaceError),
}
Expand description
The error type used by this crate.
Variants§
Io(Arc<Error>)
XML document cannot be read from underlying source.
Contains the reference-counted I/O error to make the error type Clone
able.
Syntax(SyntaxError)
The document does not corresponds to the XML grammar.
IllFormed(IllFormedError)
The document is not well-formed.
InvalidAttr(AttrError)
Attribute parsing error
Encoding(EncodingError)
Encoding error
Escape(EscapeError)
Escape error
Namespace(NamespaceError)
Parsed XML has some namespace-related problems
Trait Implementations§
Source§impl Error for Error
impl Error for Error
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<EncodingError> for Error
impl From<EncodingError> for Error
Source§fn from(error: EncodingError) -> Error
fn from(error: EncodingError) -> Error
Creates a new Error::EncodingError
from the given error
Source§impl From<EscapeError> for Error
impl From<EscapeError> for Error
Source§fn from(error: EscapeError) -> Error
fn from(error: EscapeError) -> Error
Creates a new Error::EscapeError
from the given error
Source§impl From<IllFormedError> for Error
impl From<IllFormedError> for Error
Source§fn from(error: IllFormedError) -> Self
fn from(error: IllFormedError) -> Self
Creates a new Error::IllFormed
from the given error
Source§impl From<NamespaceError> for Error
impl From<NamespaceError> for Error
Source§fn from(error: NamespaceError) -> Self
fn from(error: NamespaceError) -> Self
Converts to this type from the input type.
Source§impl From<SyntaxError> for Error
impl From<SyntaxError> for Error
Source§fn from(error: SyntaxError) -> Self
fn from(error: SyntaxError) -> Self
Creates a new Error::Syntax
from the given error
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> 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