pub enum Error {
Show 13 variants
Parse(ParseError),
Io(Error),
XPathSyntax(XPathSyntaxError),
XPathEval(XPathEvalError),
Schema(SchemaError),
Validation {
message: String,
line: Option<usize>,
column: Option<usize>,
},
Namespace(NamespaceError),
Node(NodeError),
InvalidOperation(String),
Fetch(FetchError),
Utf8(Utf8Error),
FromUtf8(FromUtf8Error),
XsdParse(XsdParseError),
}Expand description
Main error type for fastxml operations.
Variants§
Parse(ParseError)
XML parsing error
Io(Error)
IO error
XPathSyntax(XPathSyntaxError)
XPath syntax error
XPathEval(XPathEvalError)
XPath evaluation error
Schema(SchemaError)
Schema error
Validation
Validation error
Fields
Namespace(NamespaceError)
Namespace error
Node(NodeError)
Node-related error
InvalidOperation(String)
Invalid operation
Fetch(FetchError)
Network/fetch error
Utf8(Utf8Error)
UTF-8 encoding error
FromUtf8(FromUtf8Error)
String UTF-8 error
XsdParse(XsdParseError)
XSD parsing error
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<Error> for TransformError
impl From<Error> for TransformError
Source§impl From<FetchError> for Error
impl From<FetchError> for Error
Source§fn from(source: FetchError) -> Self
fn from(source: FetchError) -> Self
Converts to this type from the input type.
Source§impl From<FromUtf8Error> for Error
impl From<FromUtf8Error> for Error
Source§fn from(source: FromUtf8Error) -> Self
fn from(source: FromUtf8Error) -> Self
Converts to this type from the input type.
Source§impl From<NamespaceError> for Error
impl From<NamespaceError> for Error
Source§fn from(source: NamespaceError) -> Self
fn from(source: NamespaceError) -> Self
Converts to this type from the input type.
Source§impl From<ParseError> for Error
impl From<ParseError> for Error
Source§fn from(source: ParseError) -> Self
fn from(source: ParseError) -> Self
Converts to this type from the input type.
Source§impl From<SchemaError> for Error
impl From<SchemaError> for Error
Source§fn from(source: SchemaError) -> Self
fn from(source: SchemaError) -> Self
Converts to this type from the input type.
Source§impl From<XPathEvalError> for Error
impl From<XPathEvalError> for Error
Source§fn from(source: XPathEvalError) -> Self
fn from(source: XPathEvalError) -> Self
Converts to this type from the input type.
Source§impl From<XPathSyntaxError> for Error
impl From<XPathSyntaxError> for Error
Source§fn from(source: XPathSyntaxError) -> Self
fn from(source: XPathSyntaxError) -> Self
Converts to this type from the input type.
Source§impl From<XsdParseError> for Error
impl From<XsdParseError> for Error
Source§fn from(source: XsdParseError) -> Self
fn from(source: XsdParseError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for Error
impl !RefUnwindSafe for Error
impl Send for Error
impl Sync for Error
impl Unpin for Error
impl UnsafeUnpin 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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> ToCompactString for Twhere
T: Display,
impl<T> ToCompactString for Twhere
T: Display,
Source§fn try_to_compact_string(&self) -> Result<CompactString, ToCompactStringError>
fn try_to_compact_string(&self) -> Result<CompactString, ToCompactStringError>
Fallible version of
ToCompactString::to_compact_string() Read moreSource§fn to_compact_string(&self) -> CompactString
fn to_compact_string(&self) -> CompactString
Converts the given value to a
CompactString. Read more