Enum reproto_parser::errors::ErrorKind
[−]
pub enum ErrorKind { Msg(String), Core(ErrorKind), Io(Error), ParseInt(ParseIntError), ParseFloat(ParseFloatError), ParseBigIntError(ParseBigIntError), Pos(String, ErrorPos), File(String, PathBuf), Syntax(Option<ErrorPos>, Vec<String>), Parse(&'static str, ErrorPos), // some variants omitted }
The kind of an error.
Variants
Msg(String)
A convenient variant for String.
Core(ErrorKind)
Io(Error)
ParseInt(ParseIntError)
ParseFloat(ParseFloatError)
ParseBigIntError(ParseBigIntError)
Pos(String, ErrorPos)
File(String, PathBuf)
Syntax(Option<ErrorPos>, Vec<String>)
Parse(&'static str, ErrorPos)
Methods
impl ErrorKind
fn description(&self) -> &str
A string describing the error kind.