pub(crate) enum ProposalError {
Show 17 variants
BumpOverflow {
unit: String,
version: String,
bump: Bump,
},
FirstVersionUnknown {
unit: String,
path: RepositoryPath,
},
InvalidRequest,
MissingRevisionFile(String),
File(RequiredFileError),
Scratch(Error),
Git(GitFailure),
Forge(ForgeFailure),
Compatibility(ResolveError),
ManualEdits {
expected: String,
actual: Option<String>,
},
UnreadableMarker {
head: String,
reason: MarkerError,
},
UntrackedBranch {
head: String,
},
Adapter(ResolveError),
UnparsableTag(UnparsableTag),
DependencyCycle {
units: Vec<String>,
},
Edit(EditError),
Path(PathError),
}Expand description
A release proposal cannot be analyzed or synchronized.
Variants§
BumpOverflow
The bumped component is already at its maximum.
Fields
FirstVersionUnknown
No first version can be derived for a unit still at 0.0.0.
InvalidRequest
The unit, version, and revision options do not form a valid request.
MissingRevisionFile(String)
A revision was requested for a unit without a revision file.
File(RequiredFileError)
A revision file cannot be read.
Scratch(Error)
The scratch directory for the proposal worktree cannot be created.
Git(GitFailure)
A Git read or branch update failed.
Forge(ForgeFailure)
The forge could not look up or maintain the proposal pull request.
Compatibility(ResolveError)
The API compatibility check could not run.
ManualEdits
The branch head differs from the one the PR marker names.
Fields
UnreadableMarker
The pull request has no readable marker and the branch exists.
UntrackedBranch
The branch exists and no pull request refers to it.
Adapter(ResolveError)
Unit resolution, version grouping, or edit planning failed.
UnparsableTag(UnparsableTag)
Tags under a unit’s prefix name no version.
DependencyCycle
The proposed units depend on each other in a cycle.
Edit(EditError)
The proposal edits conflict or are stale.
Path(PathError)
A revision file path is unsafe.
Trait Implementations§
Source§impl Debug for ProposalError
impl Debug for ProposalError
Source§impl Display for ProposalError
impl Display for ProposalError
Source§impl Error for ProposalError
impl Error for ProposalError
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()