Enum quick_xml::Error[][src]

pub enum Error {
Show 13 variants Io(Error), Utf8(Utf8Error), UnexpectedEof(String), EndEventMismatch { expected: String, found: String, }, UnexpectedToken(String), UnexpectedBang, TextNotFound, XmlDeclWithoutVersion(Option<String>), NameWithQuote(usize), NoEqAfterName(usize), UnquotedValue(usize), DuplicatedAttribute(usize, usize), EscapeError(EscapeError),
}
Expand description

The error type used by this crate.

Variants

Io

IO error

Tuple Fields of Io

0: Error
Utf8

Utf8 error

Tuple Fields of Utf8

0: Utf8Error
UnexpectedEof

Unexpected End of File

Tuple Fields of UnexpectedEof

0: String
EndEventMismatch

End event mismatch

Fields of EndEventMismatch

expected: String

Expected end event

found: String

Found end event

UnexpectedToken

Unexpected token

Tuple Fields of UnexpectedToken

0: String
UnexpectedBang

Unexpected <!>

TextNotFound

Text not found, expected Event::Text

XmlDeclWithoutVersion

Event::XmlDecl must start with version attribute

Tuple Fields of XmlDeclWithoutVersion

0: Option<String>
NameWithQuote

Attribute Name contains quote

Tuple Fields of NameWithQuote

0: usize
NoEqAfterName

Attribute key not followed by with =

Tuple Fields of NoEqAfterName

0: usize
UnquotedValue

Attribute value not quoted

Tuple Fields of UnquotedValue

0: usize
DuplicatedAttribute

Duplicate attribute

Tuple Fields of DuplicatedAttribute

0: usize1: usize
EscapeError

Escape error

Tuple Fields of EscapeError

0: EscapeError

Trait Implementations

Formats the value using the given formatter. Read more

Formats the value using the given formatter. Read more

The lower-level source of this error, if any. Read more

🔬 This is a nightly-only experimental API. (backtrace)

Returns a stack backtrace, if available, of where this error occurred. Read more

👎 Deprecated since 1.42.0:

use the Display impl or to_string()

👎 Deprecated since 1.33.0:

replaced by Error::source, which can support downcasting

Creates a new Error::Io from the given error

Performs the conversion.

Creates a new Error::Utf8 from the given error

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

Converts the given value to a String. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.