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§

source§

impl Debug for Error

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Display for Error

source§

fn fmt(&self, __formatter: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Error for Error

source§

fn source(&self) -> Option<&(dyn Error + 'static)>

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

fn description(&self) -> &str

👎Deprecated since 1.42.0: use the Display impl or to_string()
1.0.0 · source§

fn cause(&self) -> Option<&dyn Error>

👎Deprecated since 1.33.0: replaced by Error::source, which can support downcasting
source§

fn provide<'a>(&'a self, demand: &mut Demand<'a>)

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

§

impl !RefUnwindSafe for Error

§

impl Send for Error

§

impl Sync for Error

§

impl Unpin for Error

§

impl !UnwindSafe for Error

Blanket Implementations§

source§

impl<T> Any for Twhere
T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere
T: ?Sized,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere
T: ?Sized,

const: unstable · source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for Twhere
U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

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

source§

impl<E> Provider for Ewhere
E: Error + ?Sized,

source§

fn provide<'a>(&'a self, demand: &mut Demand<'a>)

🔬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
source§

impl<T> ToString for Twhere
T: Display + ?Sized,

source§

default fn to_string(&self) -> String

Converts the given value to a String. Read more
source§

impl<T, U> TryFrom<U> for Twhere
U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere
U: TryFrom<T>,

§

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

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.