pub enum ProcessorError {
ReferenceNotFound(String),
DateParseError(String),
LocaleError(String),
SubstitutionError(String),
FileIO(Error),
ParseError(String, String),
}Expand description
Errors produced while resolving or rendering citations and bibliographies.
Variants§
ReferenceNotFound(String)
A citation referenced an item ID that is not present in the bibliography.
DateParseError(String)
Date parsing or normalization failed for a reference field.
LocaleError(String)
Locale data could not be loaded or did not contain a required term.
SubstitutionError(String)
Contributor or title substitution logic failed.
FileIO(Error)
Reading an input file from disk failed.
ParseError(String, String)
Parsing a named input failed with a message describing the problem.
Trait Implementations§
Source§impl Debug for ProcessorError
impl Debug for ProcessorError
Source§impl Display for ProcessorError
impl Display for ProcessorError
Source§impl Error for ProcessorError
impl Error for ProcessorError
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<Error> for ProcessorError
impl From<Error> for ProcessorError
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 !RefUnwindSafe for ProcessorError
impl !UnwindSafe for ProcessorError
impl Freeze for ProcessorError
impl Send for ProcessorError
impl Sync for ProcessorError
impl Unpin for ProcessorError
impl UnsafeUnpin for ProcessorError
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