pub enum FormatDocumentError {
UnresolvedInput(String),
StyleParse(String),
StylePath(String),
RefsInputPath(String),
RefsInputParse(String),
Processing(ProcessorError),
}Expand description
Errors that can occur during document formatting.
Variants§
UnresolvedInput(String)
The style ID or URI requires a resolver chain not available in the engine.
StyleParse(String)
Failed to parse the style YAML.
StylePath(String)
Failed to read or locate the style file.
RefsInputPath(String)
Failed to read a local refs input path.
RefsInputParse(String)
Failed to parse refs input data.
Processing(ProcessorError)
The processor encountered an error during rendering.
Trait Implementations§
Source§impl Debug for FormatDocumentError
impl Debug for FormatDocumentError
Source§impl Display for FormatDocumentError
impl Display for FormatDocumentError
Source§impl Error for FormatDocumentError
impl Error for FormatDocumentError
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<ProcessorError> for FormatDocumentError
impl From<ProcessorError> for FormatDocumentError
Source§fn from(err: ProcessorError) -> Self
fn from(err: ProcessorError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for FormatDocumentError
impl !RefUnwindSafe for FormatDocumentError
impl Send for FormatDocumentError
impl Sync for FormatDocumentError
impl Unpin for FormatDocumentError
impl UnsafeUnpin for FormatDocumentError
impl !UnwindSafe for FormatDocumentError
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