pub enum FormeError {
ParseError {
source: Error,
hint: String,
},
FontError(String),
RenderError(String),
TemplateError(String),
}Expand description
The unified error type returned by all public Forme API functions.
Variants§
ParseError
JSON input failed to parse as a valid Forme document.
FontError(String)
A font could not be loaded, parsed, or embedded.
RenderError(String)
Layout or PDF generation failed.
TemplateError(String)
Template expression evaluation failed.
Trait Implementations§
Source§impl Debug for FormeError
impl Debug for FormeError
Source§impl Display for FormeError
impl Display for FormeError
Source§impl Error for FormeError
impl Error for FormeError
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 FormeError
impl !RefUnwindSafe for FormeError
impl Send for FormeError
impl Sync for FormeError
impl Unpin for FormeError
impl UnsafeUnpin for FormeError
impl !UnwindSafe for FormeError
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