Enum xmlparser::ErrorKind
[−]
pub enum ErrorKind {
Msg(String),
Stream(StreamErrorKind),
InvalidToken(TokenType, ErrorPos),
UnexpectedToken(TokenType, ErrorPos),
UnknownToken(ErrorPos),
// some variants omitted
}The kind of an error.
Variants
Msg(String)A convenient variant for String.
Stream(StreamErrorKind)Stream errors
InvalidToken(TokenType, ErrorPos)An invalid token.
UnexpectedToken(TokenType, ErrorPos)An unexpected token.
UnknownToken(ErrorPos)An unknown token.
Methods
impl ErrorKind
fn description(&self) -> &str
A string describing the error kind.
Trait Implementations
impl Debug for ErrorKind
impl Display for ErrorKind
impl From<StreamErrorKind> for ErrorKind
Stream errors
fn from(e: StreamErrorKind) -> Self
Performs the conversion.