pub enum Error {
IOError(Error),
ColumnParseError,
UnexpectedEndOfLine,
UnexpectedEndOfFile,
UnexpectedCharacter,
UnexpectedOptionalColumn {
column_header: String,
},
MalformedCigar,
MalformedAlignmentDifference,
Message(String),
}
Expand description
All errors that can occur while parsing.
Printing is error-free, except for IO errors. Therefore when printing, Rust’s std::io::Error is used.
Variants§
IOError(Error)
An I/O error.
ColumnParseError
Parsing error when parsing the column into the expected type.
UnexpectedEndOfLine
The line was ended, but it was not expected (e.g. further columns are expected instead).
UnexpectedEndOfFile
The file was ended, but it was not expected (e.g. further columns are expected instead).
UnexpectedCharacter
An unexpected character was found.
UnexpectedOptionalColumn
An optional column with an unexpected name or type was found.
Fields
MalformedCigar
A cigar string could not be parsed.
MalformedAlignmentDifference
An alignment difference string could not be parsed.
Message(String)
Quick and dirty: simply use strings to report errors.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Error
impl !RefUnwindSafe for Error
impl Send for Error
impl Sync for Error
impl Unpin for Error
impl !UnwindSafe for Error
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more