[][src]Enum semantic_release_rust::Error

pub enum Error {
    WorkspaceError(WorkspaceError),
    WorkspaceCycles {
        crate1: String,
        crate2: String,
    },
    OutputError(Error),
    VerifyError {
        reason: String,
    },
    BadDependancy {
        from: String,
        to: String,
        typ: DependencyType,
    },
    FileReadError {
        inner: Error,
        path: PathBuf,
    },
    FileWriteError {
        inner: Error,
        path: PathBuf,
    },
    TomlError(TomlError),
    CargoTomlError {
        inner: CargoTomlError,
        manifest_path: PathBuf,
    },
    CargoPublish {
        inner: Error,
        manifest_path: PathBuf,
    },
    CargoPublishStatus {
        status: ExitStatus,
        manifest_path: PathBuf,
    },
    UrlError(UrlError),
    WriteReleaseError(WriteReleaseError),
}

The error type for operations sementic-release-rust operations.

Variants

WorkspaceError(WorkspaceError)

Error while parsing the structure of a workspace.

WorkspaceCycles

Error when verifying that a workspace does not include cycles.

Fields of WorkspaceCycles

crate1: String

The first crate in the cycle.

crate2: String

The second crate in the cycle.

OutputError(Error)

Error while writing to the output.

VerifyError

Error while verifying the conditions for a release.

Fields of VerifyError

reason: String

The reason the conditions are not satisfied.

BadDependancy

Error while verifying that dependencies allow publication.

This is a specific part of verifying the conditions for a release.

Fields of BadDependancy

from: String

The name of the package whose dependency prevents publication.

to: String

The depended on package that prevents publication.

typ: DependencyType

The type of dependency that prevents publication.

FileReadError

Error while reading a file.

Fields of FileReadError

inner: Error

The underlying error.

path: PathBuf

The path that could not be read.

FileWriteError

Error while writing a file.

Fields of FileWriteError

inner: Error

The underlying error.

path: PathBuf

The path the could not be written.

TomlError(TomlError)

Error while parsing a TOML document.

CargoTomlError

Error while examining the contents of a Cargo.toml file.

Fields of CargoTomlError

inner: CargoTomlError

The error found in the Cargo.toml file.

manifest_path: PathBuf

The Cargo.toml file in which the error occured.

CargoPublish

Error while attempting to run cargo publish

Fields of CargoPublish

inner: Error

The underlying error.

manifest_path: PathBuf

The manifest path for the crate on which the error occured.

CargoPublishStatus

Error that records a non-sucess exit status from cargo publish.

Fields of CargoPublishStatus

status: ExitStatus

The exit status from cargo publish.

manifest_path: PathBuf

The manifest path for the crate on which the error occured.

UrlError(UrlError)

Error while parsing a url for the release record.

WriteReleaseError(WriteReleaseError)

Error while attempting to write the release record as JSON.

Trait Implementations

impl Debug for Error[src]

impl Display for Error[src]

impl Error for Error[src]

Auto Trait Implementations

impl !RefUnwindSafe for Error

impl Send for Error

impl Sync for Error

impl Unpin for Error

impl !UnwindSafe for Error

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<'a, T> Obs<'a, T> for T where
    T: Send
[src]

impl<T> SafeBorrow<T> for T where
    T: ?Sized

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,