pub enum OxdocError {
Io(Error),
CorruptedZip(ZipError),
MissingPart(String),
UnsupportedEncryptedPart(String),
PartTooLarge {
path: String,
size: u64,
limit: u64,
},
SuspiciousZipEntry {
path: String,
reason: String,
},
SuspiciousRelationshipTarget {
path: String,
target: String,
reason: String,
},
MissingCoreRelations,
MalformedXmlNode {
path: String,
source: Error,
},
InvalidArgument(String),
}Variants§
Io(Error)
CorruptedZip(ZipError)
MissingPart(String)
UnsupportedEncryptedPart(String)
PartTooLarge
SuspiciousZipEntry
SuspiciousRelationshipTarget
MissingCoreRelations
MalformedXmlNode
InvalidArgument(String)
Implementations§
Source§impl OxdocError
impl OxdocError
Trait Implementations§
Source§impl Debug for OxdocError
impl Debug for OxdocError
Source§impl Display for OxdocError
impl Display for OxdocError
Source§impl Error for OxdocError
impl Error for OxdocError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Source§impl From<Error> for OxdocError
impl From<Error> for OxdocError
Auto Trait Implementations§
impl Freeze for OxdocError
impl !RefUnwindSafe for OxdocError
impl Send for OxdocError
impl Sync for OxdocError
impl Unpin for OxdocError
impl UnsafeUnpin for OxdocError
impl !UnwindSafe for OxdocError
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