Enum cargo_wix::Error [] [src]

pub enum Error {
    Command(&'static stri32),
    Generic(String),
    Io(Error),
    Manifest(&'static str),
    Mustache(Error),
    Toml(Error),
}

The error type for cargo-wix-related operations and associated traits.

Errors mostly originate from the dependencies, but custom instances of Error can be created with the Generic variant and a message.

Variants

A command operation failed.

A generic or custom error occurred. The message should contain the detailed information.

An I/O operation failed.

A needed field within the Cargo.toml manifest could not be found.

An error occurred with rendering the template using the mustache renderer.

Parsing of the Cargo.toml manifest failed.

Methods

impl Error
[src]

[src]

Gets an error code related to the error.

This is useful as a return, or exit, code for a command line application, where a non-zero integer indicates a failure in the application. it can also be used for quickly and easily testing equality between two errors.

Trait Implementations

impl Debug for Error
[src]

[src]

Formats the value using the given formatter.

impl StdError for Error
[src]

[src]

A short description of the error. Read more

[src]

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

impl Display for Error
[src]

[src]

Formats the value using the given formatter. Read more

impl From<Error> for Error
[src]

[src]

Performs the conversion.

impl From<Error> for Error
[src]

[src]

Performs the conversion.

impl From<Error> for Error
[src]

[src]

Performs the conversion.