pub enum Error {
Show 14 variants WorkspaceError(WorkspaceError), WorkspaceCycles { crate1: String, crate2: String, }, OutputError(Error), VerifyError { reason: String, }, BadDependency { 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), CargoLockfileUpdate { reason: String, package_name: String, },
}
Expand description

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

Variants§

§

WorkspaceError(WorkspaceError)

Error while parsing the structure of a workspace.

§

WorkspaceCycles

Fields

§crate1: String

The first crate in the cycle.

§crate2: String

The second crate in the cycle.

Error when verifying that a workspace does not include cycles.

§

OutputError(Error)

Error while writing to the output.

§

VerifyError

Fields

§reason: String

The reason the conditions are not satisfied.

Error while verifying the conditions for a release.

§

BadDependency

Fields

§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.

Error while verifying that dependencies allow publication.

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

§

FileReadError

Fields

§inner: Error

The underlying error.

§path: PathBuf

The path that could not be read.

Error while reading a file.

§

FileWriteError

Fields

§inner: Error

The underlying error.

§path: PathBuf

The path the could not be written.

Error while writing a file.

§

TomlError(TomlError)

Error while parsing a TOML document.

§

CargoTomlError

Fields

§inner: CargoTomlError

The error found in the Cargo.toml file.

§manifest_path: PathBuf

The Cargo.toml file in which the error occured.

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

§

CargoPublish

Fields

§inner: Error

The underlying error.

§manifest_path: PathBuf

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

Error while attempting to run cargo publish

§

CargoPublishStatus

Fields

§status: ExitStatus

The exit status from cargo publish.

§manifest_path: PathBuf

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

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

§

UrlError(UrlError)

Error while parsing a url for the release record.

§

WriteReleaseError(WriteReleaseError)

Error while attempting to write the release record as JSON.

§

CargoLockfileUpdate

Fields

§reason: String

The reason for the failed lockfile update.

§package_name: String

The package name where lockfile updating failed.

Error while attempting to update Cargo lockfile.

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
👎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
🔬This is a nightly-only experimental API. (error_generic_member_access)
Provides type based access to context intended for error reports. Read more

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.

🔬This is a nightly-only experimental API. (provide_any)
Data providers should implement this method to provide all values they are able to provide by using demand. Read more
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.