pub enum BumpError<VCS>where
VCS: VersionControlSystem,{
MissingCurrentVersion,
EmptyVersion,
Hook(Error),
Bump(BumpError),
Serialize(SerializeError),
ReplaceVersion(ReplaceVersionError),
MissingArgument(MissingArgumentError),
VCS(VCS::Error),
}Expand description
Errors that can occur when performing a version bump.
This includes missing versions, hook failures, serialization errors, file replacement failures, and version control errors.
Variants§
MissingCurrentVersion
Current version was not found in configuration or tags.
EmptyVersion
Parsed version string was empty or invalid.
Hook(Error)
A configured hook (setup, pre-commit, or post-commit) failed.
Bump(BumpError)
An error occurred while bumping the version component.
Serialize(SerializeError)
Failed to serialize the new version string.
ReplaceVersion(ReplaceVersionError)
Error replacing version in project files.
MissingArgument(MissingArgumentError)
A required template argument was missing.
VCS(VCS::Error)
Underlying version control system error.
Trait Implementations§
Source§impl<VCS> Error for BumpError<VCS>
impl<VCS> Error for BumpError<VCS>
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<VCS> From<MissingArgumentError> for BumpError<VCS>where
VCS: VersionControlSystem,
impl<VCS> From<MissingArgumentError> for BumpError<VCS>where
VCS: VersionControlSystem,
Source§fn from(source: MissingArgumentError) -> Self
fn from(source: MissingArgumentError) -> Self
Converts to this type from the input type.
Source§impl<VCS> From<ReplaceVersionError> for BumpError<VCS>where
VCS: VersionControlSystem,
impl<VCS> From<ReplaceVersionError> for BumpError<VCS>where
VCS: VersionControlSystem,
Source§fn from(source: ReplaceVersionError) -> Self
fn from(source: ReplaceVersionError) -> Self
Converts to this type from the input type.
Source§impl<VCS> From<SerializeError> for BumpError<VCS>where
VCS: VersionControlSystem,
impl<VCS> From<SerializeError> for BumpError<VCS>where
VCS: VersionControlSystem,
Source§fn from(source: SerializeError) -> Self
fn from(source: SerializeError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl<VCS> Freeze for BumpError<VCS>
impl<VCS> !RefUnwindSafe for BumpError<VCS>
impl<VCS> Send for BumpError<VCS>
impl<VCS> Sync for BumpError<VCS>
impl<VCS> Unpin for BumpError<VCS>
impl<VCS> !UnwindSafe for BumpError<VCS>
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