pub enum OfdError {
Show 14 variants
Io(Error),
Package(PackageError),
Xml(XmlError),
Format(FormatError),
Render(RenderError),
Font(FontError),
Signature(SignatureError),
Crypto(CryptoError),
Convert(ConvertError),
Edit(EditError),
Print(PrintError),
PasswordRequired,
Compliance(String),
ResourceLimit(String),
}Expand description
Top-level error that every failure converges to.
Variants§
Io(Error)
Filesystem or stream failure.
Package(PackageError)
Failure inside the ZIP container layer.
Xml(XmlError)
XML parsing or serialization failure.
Format(FormatError)
Document violates the format specification.
Render(RenderError)
Rendering failure.
Font(FontError)
Font handling failure.
Signature(SignatureError)
Signature creation or verification failure.
Crypto(CryptoError)
Cryptographic operation failure.
Convert(ConvertError)
Format conversion failure.
Edit(EditError)
Document editing failure.
Print(PrintError)
Printing failure.
PasswordRequired
Document is encrypted and needs a password.
Compliance(String)
Compliance validation failed.
ResourceLimit(String)
A resource budget was exceeded while guarding against hostile documents.
Implementations§
Trait Implementations§
Source§impl Error for OfdError
impl Error for OfdError
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<ConvertError> for OfdError
impl From<ConvertError> for OfdError
Source§fn from(source: ConvertError) -> Self
fn from(source: ConvertError) -> Self
Converts to this type from the input type.
Source§impl From<CryptoError> for OfdError
impl From<CryptoError> for OfdError
Source§fn from(source: CryptoError) -> Self
fn from(source: CryptoError) -> Self
Converts to this type from the input type.
Source§impl From<FormatError> for OfdError
impl From<FormatError> for OfdError
Source§fn from(source: FormatError) -> Self
fn from(source: FormatError) -> Self
Converts to this type from the input type.
Source§impl From<PackageError> for OfdError
impl From<PackageError> for OfdError
Source§fn from(source: PackageError) -> Self
fn from(source: PackageError) -> Self
Converts to this type from the input type.
Source§impl From<PrintError> for OfdError
impl From<PrintError> for OfdError
Source§fn from(source: PrintError) -> Self
fn from(source: PrintError) -> Self
Converts to this type from the input type.
Source§impl From<RenderError> for OfdError
impl From<RenderError> for OfdError
Source§fn from(source: RenderError) -> Self
fn from(source: RenderError) -> Self
Converts to this type from the input type.
Source§impl From<SignatureError> for OfdError
impl From<SignatureError> for OfdError
Source§fn from(source: SignatureError) -> Self
fn from(source: SignatureError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl !RefUnwindSafe for OfdError
impl !UnwindSafe for OfdError
impl Freeze for OfdError
impl Send for OfdError
impl Sync for OfdError
impl Unpin for OfdError
impl UnsafeUnpin for OfdError
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