pub enum Error {
Show 18 variants
Io {
path: PathBuf,
source: Error,
},
Toml {
path: PathBuf,
source: TomlError,
},
MissingPackageName(PathBuf),
CrateNotFound(String),
LedgerNotFound(PathBuf),
Git(Error),
Registry(Error),
Ledger(Error),
Manifest(Error),
Subprocess(String),
PathDependencies {
manifest: PathBuf,
deps: Vec<String>,
},
CargoCheck {
stderr: String,
},
TokenResolution(String),
VersionAlreadyTracked(Version),
TagAlreadyExists(String),
InvalidVersion {
input: String,
source: Error,
},
Snapshot(String),
SnapshotNotFound(String),
}Expand description
All errors that can occur in crate-seq-core operations.
Variants§
Io
Filesystem I/O failure reading a manifest or ledger.
Fields
Toml
TOML parse failure in a workspace or crate manifest.
Fields
MissingPackageName(PathBuf)
A Cargo.toml is missing a [package].name field.
CrateNotFound(String)
A named crate was not found among workspace members.
LedgerNotFound(PathBuf)
Ledger file not found at the given path.
Git(Error)
Git tag discovery failed.
Registry(Error)
Registry query failed.
Ledger(Error)
Ledger I/O or state-machine error.
Manifest(Error)
Manifest rewrite or path-dep scan failed.
Subprocess(String)
Subprocess could not be spawned or failed to complete.
PathDependencies
Path dependencies found in the manifest; lists all offending dep names.
Fields
CargoCheck
cargo check exited non-zero.
TokenResolution(String)
Token resolution failed; contains actionable setup instructions.
VersionAlreadyTracked(Version)
The version is already tracked in the ledger.
TagAlreadyExists(String)
A git tag with this name already exists in the repository.
InvalidVersion
The semver string provided could not be parsed.
Snapshot(String)
Snapshot capture or hashing failed.
SnapshotNotFound(String)
No tarball found in the snapshot store matching the expected SHA-256.
Trait Implementations§
Source§impl Error for Error
impl Error for Error
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
Auto Trait Implementations§
impl Freeze for Error
impl !RefUnwindSafe for Error
impl Send for Error
impl Sync for Error
impl Unpin for Error
impl UnsafeUnpin for Error
impl !UnwindSafe for Error
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
Source§impl<T> ErrorExt for T
impl<T> ErrorExt for T
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> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Source§impl<T> ToStringFallible for Twhere
T: Display,
impl<T> ToStringFallible for Twhere
T: Display,
Source§fn try_to_string(&self) -> Result<String, TryReserveError>
fn try_to_string(&self) -> Result<String, TryReserveError>
ToString::to_string, but without panic on OOM.