pub(crate) enum HolderError {
Parse {
path: PathBuf,
source: Error,
},
File(RequiredFileError),
NotUtf8(NotUtf8),
Changelog(ReadError),
MissingUnreleased(MissingUnreleased),
Malformed {
path: PathBuf,
},
Document(DocumentTargetError),
Path(PathError),
Edit(EditError),
}Expand description
Planning or application failure for a unit with a version holder.
Variants§
Parse
The version in the file is not strict semver.
File(RequiredFileError)
A version holder cannot be read.
NotUtf8(NotUtf8)
A version holder is not UTF-8 text.
Changelog(ReadError)
A changelog cannot be read.
MissingUnreleased(MissingUnreleased)
A changelog lacks the ## [Unreleased] heading.
Malformed
The file holds something other than one version line.
Document(DocumentTargetError)
A document cannot hold or take the version.
Path(PathError)
A configured path is unsafe or outside the repository.
Edit(EditError)
The planned edits conflict or are stale.
Trait Implementations§
Source§impl Debug for HolderError
impl Debug for HolderError
Source§impl Display for HolderError
impl Display for HolderError
Source§impl Error for HolderError
impl Error for HolderError
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<DocumentTargetError> for HolderError
impl From<DocumentTargetError> for HolderError
Source§fn from(source: DocumentTargetError) -> Self
fn from(source: DocumentTargetError) -> Self
Converts to this type from the input type.
Source§impl From<EditError> for HolderError
impl From<EditError> for HolderError
Source§impl From<HolderError> for ResolveError
impl From<HolderError> for ResolveError
Source§fn from(source: HolderError) -> Self
fn from(source: HolderError) -> Self
Converts to this type from the input type.
Source§impl From<MissingUnreleased> for HolderError
impl From<MissingUnreleased> for HolderError
Source§fn from(source: MissingUnreleased) -> Self
fn from(source: MissingUnreleased) -> Self
Converts to this type from the input type.
Source§impl From<NotUtf8> for HolderError
impl From<NotUtf8> for HolderError
Source§impl From<PathError> for HolderError
impl From<PathError> for HolderError
Source§impl From<ReadError> for HolderError
impl From<ReadError> for HolderError
Source§impl From<RequiredFileError> for HolderError
impl From<RequiredFileError> for HolderError
Source§fn from(source: RequiredFileError) -> Self
fn from(source: RequiredFileError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl !RefUnwindSafe for HolderError
impl !UnwindSafe for HolderError
impl Freeze for HolderError
impl Send for HolderError
impl Sync for HolderError
impl Unpin for HolderError
impl UnsafeUnpin for HolderError
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