pub enum OdsError {
Io(Error),
Zip(ZipError),
Xml(Error),
XmlAttr(AttrError),
Parse(ParseError),
ParseInt(ParseIntError),
ParseFloat(ParseFloatError),
InvalidMime(Vec<u8>),
FileNotFound(&'static str),
Eof(&'static str),
Mismatch {
expected: &'static str,
found: String,
},
}
Expand description
An enum for ods specific errors
Variants
Io(Error)
Io error
Zip(ZipError)
Zip error
Xml(Error)
Xml error
XmlAttr(AttrError)
Xml attribute error
Parse(ParseError)
Error while parsing string
ParseInt(ParseIntError)
Error while parsing integer
ParseFloat(ParseFloatError)
Error while parsing float
InvalidMime(Vec<u8>)
Invalid MIME
FileNotFound(&'static str)
File not found
Eof(&'static str)
Unexpected end of file
Mismatch
Unexpected error
Trait Implementations
sourceimpl Error for OdsError
impl Error for OdsError
sourcefn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more
1.0.0 · sourcefn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
sourceimpl From<Infallible> for OdsError
impl From<Infallible> for OdsError
sourcefn from(e: ParseError) -> OdsError
fn from(e: ParseError) -> OdsError
Converts to this type from the input type.
sourceimpl From<ParseFloatError> for OdsError
impl From<ParseFloatError> for OdsError
sourcefn from(e: ParseFloatError) -> OdsError
fn from(e: ParseFloatError) -> OdsError
Converts to this type from the input type.
Auto Trait Implementations
impl !RefUnwindSafe for OdsError
impl Send for OdsError
impl Sync for OdsError
impl Unpin for OdsError
impl !UnwindSafe for OdsError
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more