pub enum OperationError {
Show 49 variants
Core(ChangesetError),
Git(GitError),
Project(ProjectError),
Parse(FormatError),
Manifest(ManifestError),
Changelog(ChangelogError),
VersionCalculation(VersionError),
ChangesetFileRead {
path: PathBuf,
source: Error,
},
ChangelogFileRead {
path: PathBuf,
source: Error,
},
ChangesetParse {
path: PathBuf,
source: FormatError,
},
ChangesetFileWrite(Error),
ChangesetList {
path: PathBuf,
source: Error,
},
ProjectRootMismatch {
expected: PathBuf,
actual: PathBuf,
},
ProjectRootCanonicalize {
path: PathBuf,
source: Error,
},
Cancelled,
EmptyProject(PathBuf),
UnknownPackage {
name: String,
available: String,
},
MissingBumpType {
package_name: String,
},
MissingDescription,
EmptyDescription,
NoPackagesSelected,
InteractionRequired,
Io(Error),
InheritedVersionsRequireConvert {
packages: Vec<String>,
},
NoneBumpDisallowed {
packages: Vec<String>,
},
ComparisonLinksRequired,
ComparisonLinksUrlParse(ChangelogError),
DirtyWorkingTree,
PrereleaseTagRequired,
NoChangesetsWithoutForce,
InvalidChangesetPath {
path: PathBuf,
reason: &'static str,
},
ReleaseStateRead {
path: PathBuf,
source: Error,
},
ReleaseStateWrite {
path: PathBuf,
source: Error,
},
ReleaseStateParse {
path: PathBuf,
source: Error,
},
ReleaseStateSerialize {
path: PathBuf,
source: Error,
},
ValidationFailed(ValidationErrors),
VersionParse {
version: String,
context: String,
source: Error,
},
TagDeletionFailed {
failed_tags: Vec<String>,
},
PackageNotFound {
name: String,
},
CannotGraduatePrerelease {
package: String,
version: Version,
},
CannotGraduateStable {
package: String,
version: Version,
},
InvalidPrereleaseFormat {
input: String,
},
InvalidPrereleaseTag {
tag: String,
source: PrereleaseSpecParseError,
},
LockfileRead {
path: PathBuf,
source: Error,
},
LockfileWrite {
path: PathBuf,
source: Error,
},
LockfileGeneration {
path: PathBuf,
source: Error,
},
LockfileCommandFailed {
stderr: String,
},
SagaFailed {
step: String,
source: Box<OperationError>,
},
SagaCompensationFailed {
step: String,
source: Box<OperationError>,
compensation_failures: Vec<CompensationFailure>,
},
}Variants§
Core(ChangesetError)
Git(GitError)
Project(ProjectError)
Parse(FormatError)
Manifest(ManifestError)
Changelog(ChangelogError)
VersionCalculation(VersionError)
ChangesetFileRead
ChangelogFileRead
ChangesetParse
ChangesetFileWrite(Error)
ChangesetList
ProjectRootMismatch
ProjectRootCanonicalize
Cancelled
EmptyProject(PathBuf)
UnknownPackage
MissingBumpType
MissingDescription
EmptyDescription
NoPackagesSelected
InteractionRequired
Io(Error)
InheritedVersionsRequireConvert
NoneBumpDisallowed
ComparisonLinksRequired
ComparisonLinksUrlParse(ChangelogError)
DirtyWorkingTree
PrereleaseTagRequired
NoChangesetsWithoutForce
InvalidChangesetPath
ReleaseStateRead
ReleaseStateWrite
ReleaseStateParse
ReleaseStateSerialize
ValidationFailed(ValidationErrors)
VersionParse
TagDeletionFailed
Fields
PackageNotFound
CannotGraduatePrerelease
CannotGraduateStable
InvalidPrereleaseFormat
InvalidPrereleaseTag
LockfileRead
LockfileWrite
LockfileGeneration
LockfileCommandFailed
SagaFailed
SagaCompensationFailed
Trait Implementations§
Source§impl Debug for OperationError
impl Debug for OperationError
Source§impl Display for OperationError
impl Display for OperationError
Source§impl Error for OperationError
impl Error for OperationError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Source§impl From<ChangelogError> for OperationError
impl From<ChangelogError> for OperationError
Source§fn from(source: ChangelogError) -> Self
fn from(source: ChangelogError) -> Self
Converts to this type from the input type.
Source§impl From<ChangesetError> for OperationError
impl From<ChangesetError> for OperationError
Source§fn from(source: ChangesetError) -> Self
fn from(source: ChangesetError) -> Self
Converts to this type from the input type.
Source§impl From<Error> for OperationError
impl From<Error> for OperationError
Source§impl From<FormatError> for OperationError
impl From<FormatError> for OperationError
Source§fn from(source: FormatError) -> Self
fn from(source: FormatError) -> Self
Converts to this type from the input type.
Source§impl From<GitError> for OperationError
impl From<GitError> for OperationError
Source§impl From<ManifestError> for OperationError
impl From<ManifestError> for OperationError
Source§fn from(source: ManifestError) -> Self
fn from(source: ManifestError) -> Self
Converts to this type from the input type.
Source§impl From<ProjectError> for OperationError
impl From<ProjectError> for OperationError
Source§fn from(source: ProjectError) -> Self
fn from(source: ProjectError) -> Self
Converts to this type from the input type.
Source§impl From<SagaError<OperationError>> for OperationError
impl From<SagaError<OperationError>> for OperationError
Source§fn from(err: SagaError<OperationError>) -> Self
fn from(err: SagaError<OperationError>) -> Self
Converts to this type from the input type.
Source§impl From<ValidationErrors> for OperationError
impl From<ValidationErrors> for OperationError
Source§fn from(source: ValidationErrors) -> Self
fn from(source: ValidationErrors) -> Self
Converts to this type from the input type.
Source§impl From<VersionError> for OperationError
impl From<VersionError> for OperationError
Source§fn from(source: VersionError) -> Self
fn from(source: VersionError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for OperationError
impl !RefUnwindSafe for OperationError
impl Send for OperationError
impl Sync for OperationError
impl Unpin for OperationError
impl UnsafeUnpin for OperationError
impl !UnwindSafe for OperationError
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more