pub enum RenderError {
EngineCreation {
diag: Box<Diagnostic>,
},
InvalidFrontmatter {
diag: Box<Diagnostic>,
},
CompilationFailed {
diags: Vec<Diagnostic>,
},
FormatNotSupported {
diag: Box<Diagnostic>,
},
UnsupportedBackend {
diag: Box<Diagnostic>,
},
ValidationFailed {
diag: Box<Diagnostic>,
},
QuillConfig {
diag: Box<Diagnostic>,
},
}Expand description
Main error type for rendering operations.
Variants§
EngineCreation
Failed to create rendering engine
Fields
§
diag: Box<Diagnostic>Diagnostic information
InvalidFrontmatter
Invalid YAML frontmatter in markdown document
Fields
§
diag: Box<Diagnostic>Diagnostic information
CompilationFailed
Backend compilation failed with one or more errors
Fields
§
diags: Vec<Diagnostic>List of diagnostics
FormatNotSupported
Requested output format not supported by backend
Fields
§
diag: Box<Diagnostic>Diagnostic information
UnsupportedBackend
Backend not registered with engine
Fields
§
diag: Box<Diagnostic>Diagnostic information
ValidationFailed
Validation failed for parsed document
Fields
§
diag: Box<Diagnostic>Diagnostic information
QuillConfig
Quill configuration error
Fields
§
diag: Box<Diagnostic>Diagnostic information
Implementations§
Source§impl RenderError
impl RenderError
Sourcepub fn diagnostics(&self) -> Vec<&Diagnostic>
pub fn diagnostics(&self) -> Vec<&Diagnostic>
Extract all diagnostics from this error
Trait Implementations§
Source§impl Debug for RenderError
impl Debug for RenderError
Source§impl Display for RenderError
impl Display for RenderError
Source§impl Error for RenderError
impl Error for RenderError
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()
Source§impl From<ParseError> for RenderError
Convert ParseError to RenderError
impl From<ParseError> for RenderError
Convert ParseError to RenderError
Source§fn from(err: ParseError) -> Self
fn from(err: ParseError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for RenderError
impl RefUnwindSafe for RenderError
impl Send for RenderError
impl Sync for RenderError
impl Unpin for RenderError
impl UnsafeUnpin for RenderError
impl UnwindSafe for RenderError
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