pub enum DiagramError {
PikchrRenderError(String),
Roadmap(RoadmapError),
InvokeFailed(String, PathBuf, String),
HelperFailed(String, PathBuf, String, String),
IoError(Error),
}
Expand description
Possible errors for diagram filtering.
Variants§
PikchrRenderError(String)
When rendering a pikchr, something went wrong.
Roadmap(RoadmapError)
When rendering a roadmap, something went wrong.
InvokeFailed(String, PathBuf, String)
Failed to invoke a program.
This Pandoc filter uses some helper programs to do some of its work. It failed to invoke such a helper program.
Tuple Fields
HelperFailed(String, PathBuf, String, String)
A helper program failed
The filter uses some helper programs to implement some of its functionality, for example the GraphViz dot program. This error means that the helper program failed (exit code was not zero).
This probably implies there’s something wrong in the filter. Please report this error.
Tuple Fields
IoError(Error)
I/O error
The filter did some I/O, and it failed. This is a generic wrapper for any kind of I/O error.
Trait Implementations§
Source§impl Debug for DiagramError
impl Debug for DiagramError
Source§impl Display for DiagramError
impl Display for DiagramError
Source§impl Error for DiagramError
impl Error for DiagramError
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 DiagramError
impl From<Error> for DiagramError
Source§impl From<RoadmapError> for DiagramError
impl From<RoadmapError> for DiagramError
Source§fn from(source: RoadmapError) -> Self
fn from(source: RoadmapError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for DiagramError
impl !RefUnwindSafe for DiagramError
impl Send for DiagramError
impl Sync for DiagramError
impl Unpin for DiagramError
impl !UnwindSafe for DiagramError
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