pub enum ServerError {
StyleValidation(String),
StyleNotFound(String),
StyleResolution(String),
ResolverError(String),
BibliographyError(String),
CitationError(String),
IoError(Error),
JsonError(Error),
YamlError(Error),
EngineError(ProcessorError),
MissingField(Cow<'static, str>),
UnsupportedOutputFormat(Cow<'static, str>),
}Expand description
Server-level errors.
Variants§
StyleValidation(String)
The style YAML was found but failed to parse or validate against the schema.
StyleNotFound(String)
No resolver in the chain could locate the requested style name, path, or URI.
StyleResolution(String)
The style was found but inheritance or template resolution failed.
ResolverError(String)
The chain resolver itself failed to initialize or run.
BibliographyError(String)
Bibliography input could not be deserialized or rendered.
CitationError(String)
Citation input could not be deserialized or rendered.
IoError(Error)
An I/O operation failed while reading input or writing output.
JsonError(Error)
JSON input or output failed to deserialize or serialize.
YamlError(Error)
YAML style parsing failed.
EngineError(ProcessorError)
The underlying citation engine returned an error.
MissingField(Cow<'static, str>)
A required JSON-RPC parameter was missing from the request.
UnsupportedOutputFormat(Cow<'static, str>)
The request asked for an unsupported output format.
Trait Implementations§
Source§impl Debug for ServerError
impl Debug for ServerError
Source§impl Display for ServerError
impl Display for ServerError
Source§impl Error for ServerError
impl Error for ServerError
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 ServerError
impl From<Error> for ServerError
Source§impl From<Error> for ServerError
impl From<Error> for ServerError
Source§impl From<Error> for ServerError
impl From<Error> for ServerError
Source§impl From<ProcessorError> for ServerError
impl From<ProcessorError> for ServerError
Source§fn from(source: ProcessorError) -> Self
fn from(source: ProcessorError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl !RefUnwindSafe for ServerError
impl !UnwindSafe for ServerError
impl Freeze for ServerError
impl Send for ServerError
impl Sync for ServerError
impl Unpin for ServerError
impl UnsafeUnpin for ServerError
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