pub enum OfficeError {
ShapeBuild(String),
CapabilityDenied(CapabilityName),
Kernel(String),
PackageTooLarge {
limit: &'static str,
detail: String,
},
DomainEdit(String),
Site(String),
Surface(String),
}Expand description
Error reported by the office document core.
Variants§
ShapeBuild(String)
A kernel factory failed while building a shape value.
CapabilityDenied(CapabilityName)
A capability was required but absent from the active context.
Kernel(String)
The kernel reported an error that does not have a narrower office-core category yet.
PackageTooLarge
A compressed office package exceeded one of the bounded reader limits.
Fields
DomainEdit(String)
A domain edit could not be applied.
Site(String)
A document site could not be resolved or run.
Surface(String)
A document surface scene or intent could not be projected or decoded.
Trait Implementations§
Source§impl Clone for OfficeError
impl Clone for OfficeError
Source§fn clone(&self) -> OfficeError
fn clone(&self) -> OfficeError
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for OfficeError
impl Debug for OfficeError
Source§impl Display for OfficeError
impl Display for OfficeError
Source§impl Error for OfficeError
impl Error for OfficeError
1.30.0 · 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()
Auto Trait Implementations§
impl Freeze for OfficeError
impl RefUnwindSafe for OfficeError
impl Send for OfficeError
impl Sync for OfficeError
impl Unpin for OfficeError
impl UnsafeUnpin for OfficeError
impl UnwindSafe for OfficeError
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