Enum translate_storage::Error
[−]
[src]
pub enum Error { Io(usize, Error), Parse(usize, Option<String>, Vec<&'static str>), }
Error in reading (and, in future, writing) a catalogue.
Variants
Io(usize, Error)
An I/O error from file operation.
The first parameter is line number if applicable, the second is the system error.
Parse(usize, Option<String>, Vec<&'static str>)
A parse error.
Parameters are line number, optional unexpected token and an array of expected tokens. Unset unexpected token means the parser is not smart enough to remember what it stopped on. Empty array of expected items means the parser is not smart enough to remember what it could have accepted instead.