pub enum DiagramError {
    PikchrRenderError(String),
    Roadmap(RoadmapError),
    InvokeFailed(StringPathBufString),
    HelperFailed(StringPathBufStringString),
    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(StringPathBufString)

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(StringPathBufStringString)

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

Formats the value using the given formatter. Read more

Formats the value using the given formatter. Read more

The lower-level source of this error, if any. Read more

🔬 This is a nightly-only experimental API. (backtrace)

Returns a stack backtrace, if available, of where this error occurred. Read more

👎 Deprecated since 1.42.0:

use the Display impl or to_string()

👎 Deprecated since 1.33.0:

replaced by Error::source, which can support downcasting

Converts to this type from the input type.

Converts to this type from the input type.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Converts the given value to a String. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.