Enum uniprot::error::Error [−][src]
pub enum Error { Xml(XmlError), ParseInt(ParseIntError), ParseBool(ParseBoolError), ParseUrl(ParseUrlError), MissingElement(&'static str, &'static str), MissingAttribute(&'static str, &'static str), DuplicateElement(&'static str, &'static str), InvalidValue(&'static str, &'static str, InvalidValue), UnexpectedRoot(String), DisconnectedChannel, }
Expand description
The main error type for the uniprot
crate.
Variants
Xml(XmlError)
The underlying XML parser encountered an error.
Any error from the underlying reader will be wrapped in the
XmlError::Io
variant.
ParseInt(ParseIntError)
An integer value could not be parsed successfully.
ParseBool(ParseBoolError)
A boolean value could not be parsed successfully.
ParseUrl(ParseUrlError)
A Url
value could not be parsed successfully.
A required element is missing.
A required attribute is missing.
An element which should be unique was found more than once.
InvalidValue(&'static str, &'static str, InvalidValue)
A value could not be parsed successfully.
UnexpectedRoot(String)
Unexpected root element.
A communication channel between threads was disconnected early.
Implementations
Trait Implementations
Performs the conversion.
Performs the conversion.
Performs the conversion.
Auto Trait Implementations
impl !RefUnwindSafe for Error
impl !UnwindSafe for Error