Struct tectonic::errors::Error[]

pub struct Error(pub ErrorKind, _);

The Error type.

This tuple struct is made of two elements:

  • an ErrorKind which is used to determine the type of the error.
  • An internal State, not meant for direct use outside of error_chain internals, containing:
    • a backtrace, generated when the error is created.
    • an error chain, used for the implementation of Error::cause().

Methods

impl Error

Constructs an error from a kind, and generates a backtrace.

Constructs a chained error from another error and a kind, and generates a backtrace.

Construct a chained error from another boxed error and a kind, and generates a backtrace

Returns the kind of the error.

Important traits for Iter<'a>

Iterates over the error chain.

Returns the backtrace associated with this error.

Extends the error chain with a new entry.

impl Error
[src]

Write the information contained in this object to standard error in a somewhat user-friendly form.

The error_chain crate provides a Display impl for its Error objects that ought to provide this functionality, but I have had enormous trouble being able to use it. So instead we emulate their code. This function is also paralleled by the implementation in status::termcolor::TermcolorStatusBackend, which adds the sugar of providing nice colorization if possible. This function should only be used if a StatusBackend is not yet available in the running program.

Methods from Deref<Target = ErrorKind>

A string describing the error kind.

Trait Implementations

impl Debug for Error

Formats the value using the given formatter. Read more

impl ChainedError for Error

Associated kind type.

Constructs an error from a kind, and generates a backtrace.

Constructs a chained error from another error and a kind, and generates a backtrace.

Returns the kind of the error.

Important traits for Iter<'a>

Iterates over the error chain.

Extends the error chain with a new entry.

Returns the backtrace associated with this error.

Returns an object which implements Display for printing the full context of this error. Read more

impl Error for Error

This method is soft-deprecated. Read more

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

impl Display for Error

Formats the value using the given formatter. Read more

impl From<AppDirsError> for Error

Performs the conversion.

impl From<Error> for Error

Performs the conversion.

impl From<Error> for Error

Performs the conversion.

impl From<NulError> for Error

Performs the conversion.

impl From<ParseIntError> for Error

Performs the conversion.

impl From<Error> for Error

Performs the conversion.

impl From<Utf8Error> for Error

Performs the conversion.

impl From<XdvError> for Error

Performs the conversion.

impl From<ZipError> for Error

Performs the conversion.

impl From<ErrorKind> for Error

Performs the conversion.

impl<'a> From<&'a str> for Error

Performs the conversion.

impl From<String> for Error

Performs the conversion.

impl Deref for Error

The resulting type after dereferencing.

Dereferences the value.

impl From<Error> for ErrorKind

Performs the conversion.

impl From<Error> for Error
[src]

Performs the conversion.

impl DefinitelySame for Error
[src]

Here we abuse DefinitelySame a bit and ignore the backtrace etc.

Auto Trait Implementations

impl Send for Error

impl !Sync for Error