pub(crate) enum ResolveError {
Show 16 variants
Cargo(CargoError),
Npm(NpmError),
Holder(HolderError),
Pin(PinError),
UnknownUnit(String),
InvalidVersion {
unit: String,
version: String,
source: Error,
},
NotIncreasing {
unit: String,
current: Version,
},
FirstBelowCurrent {
unit: String,
current: Version,
},
UnknownDependency {
unit: String,
dependency: String,
},
PinWithoutDependency {
unit: String,
dependency: String,
},
RevisionRead(RequiredFileError),
ChangelogRead(FilesError),
NotUtf8(NotUtf8),
RevisionParse {
path: PathBuf,
source: ParseIntError,
},
AmbiguousTag {
unit: String,
tag: String,
},
Path(PathError),
}Expand description
A unit cannot be resolved, versioned, or planned.
Variants§
Cargo(CargoError)
The Cargo adapter failed.
Npm(NpmError)
The npm adapter failed.
Holder(HolderError)
A unit’s version holder failed.
Pin(PinError)
A dependency pin failed.
UnknownUnit(String)
A request named a unit that is not configured.
InvalidVersion
A requested version is not strict semver.
NotIncreasing
A target version does not move its unit forward.
FirstBelowCurrent
A first release is below the version its unit has today.
UnknownDependency
A unit depends on a unit that is not configured.
PinWithoutDependency
A unit pins a unit that is not among its dependencies.
RevisionRead(RequiredFileError)
A configured revision file cannot be read.
ChangelogRead(FilesError)
A unit changelog cannot be read.
NotUtf8(NotUtf8)
A file is not UTF-8 text.
RevisionParse
A configured revision file does not hold a decimal integer.
AmbiguousTag
A unit’s tag would not read back as its version and revision, as with a prerelease followed by a revision suffix.
Path(PathError)
A configured path is unsafe or outside the repository.
Trait Implementations§
Source§impl Debug for ResolveError
impl Debug for ResolveError
Source§impl Display for ResolveError
impl Display for ResolveError
Source§impl Error for ResolveError
impl Error for ResolveError
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
use the Display impl or to_string()