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)
Tuple Fields
0: String
The error message from pikchr.
When rendering a pikchr, something went wrong.
Roadmap(RoadmapError)
When rendering a roadmap, something went wrong.
InvokeFailed(String, PathBuf, String)
Tuple Fields
0: String
Name of the program.
1: PathBuf
Path with which the program was invoked.
2: String
Standard error output of program.
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.
HelperFailed(String, PathBuf, String, String)
Tuple Fields
0: String
Name of the program.
1: PathBuf
Path with which the program was invoked.
2: String
How did the program end? Status code or signal?
3: String
Standard error output of program.
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.
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
sourceimpl Debug for DiagramError
impl Debug for DiagramError
sourceimpl Display for DiagramError
impl Display for DiagramError
sourceimpl Error for DiagramError
impl Error for DiagramError
sourcefn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more
sourcefn backtrace(&self) -> Option<&Backtrace>
fn backtrace(&self) -> Option<&Backtrace>
backtrace
)Returns a stack backtrace, if available, of where this error occurred. Read more
1.0.0 · sourcefn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()
sourceimpl From<Error> for DiagramError
impl From<Error> for DiagramError
sourceimpl From<RoadmapError> for DiagramError
impl From<RoadmapError> for DiagramError
sourcefn from(source: RoadmapError) -> Self
fn from(source: RoadmapError) -> Self
Converts to this type from the input type.
Auto Trait Implementations
impl !RefUnwindSafe for DiagramError
impl Send for DiagramError
impl Sync for DiagramError
impl Unpin for DiagramError
impl !UnwindSafe for DiagramError
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more