Enum kontrolluppgift::error::Error
source · pub enum Error {
Io(Arc<IoError>),
NonDecodable(Option<Utf8Error>),
UnexpectedEof(String),
EndEventMismatch {
expected: String,
found: String,
},
UnexpectedToken(String),
UnexpectedBang(u8),
TextNotFound,
XmlDeclWithoutVersion(Option<String>),
InvalidAttr(AttrError),
EscapeError,
UnknownPrefix(Vec<u8>),
MissingElement(String),
}
Variants§
Io(Arc<IoError>)
NonDecodable(Option<Utf8Error>)
UnexpectedEof(String)
EndEventMismatch
UnexpectedToken(String)
UnexpectedBang(u8)
TextNotFound
XmlDeclWithoutVersion(Option<String>)
InvalidAttr(AttrError)
EscapeError
UnknownPrefix(Vec<u8>)
MissingElement(String)
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)>
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()