#[non_exhaustive]pub enum StagerError {
Git {
source: GitError,
},
WorkArea {
source: WorkAreaError,
},
InvalidIntegrationBranch {
commit: CommitId,
reason: InvalidCommitReason,
},
DuplicateTopicId {
id: u64,
},
CreateStageRef {
stage: CommitId,
base: CommitId,
output: String,
},
ListStageHistory {
output: String,
},
ExtractMergeInfo {
output: String,
},
InvalidStageMerge {
commit: CommitId,
log_info: String,
},
CannotUnstageBase,
DateParse {
source: ParseError,
},
IdParse {
source: ParseIntError,
},
}
Expand description
Errors which may occur while managing a topic stage branch.
This enum is non_exhaustive
, but cannot be marked as such until it is stable. In the
meantime, there is a hidden variant.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Git
An error occurred when working with Git itself.
WorkArea
An error occurred when working with the workarea.
Fields
§
source: WorkAreaError
The cause of the error.
InvalidIntegrationBranch
The integration branch is invalid.
Fields
§
reason: InvalidCommitReason
Why the branch is invalid.
DuplicateTopicId
A topic with the given ID is already on the stage.
CreateStageRef
An error occurred when creating a stage ref.
Fields
ListStageHistory
An error occurred when listing the stage’s history.
ExtractMergeInfo
An error occurred when extracting topic information from a merge.
InvalidStageMerge
An invalid merge into the stage was found.
Fields
CannotUnstageBase
The base commit cannot be unstaged.
DateParse
An invalid commit date was found.
Fields
§
source: ParseError
The date parse error.
IdParse
👎Deprecated since 4.1.0: No longer used.
An invalid topic ID was found.
Fields
Trait Implementations§
Source§impl Debug for StagerError
impl Debug for StagerError
Source§impl Display for StagerError
impl Display for StagerError
Source§impl Error for StagerError
impl Error for StagerError
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<GitError> for StagerError
impl From<GitError> for StagerError
Source§impl From<WorkAreaError> for StagerError
impl From<WorkAreaError> for StagerError
Source§fn from(source: WorkAreaError) -> Self
fn from(source: WorkAreaError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for StagerError
impl !RefUnwindSafe for StagerError
impl Send for StagerError
impl Sync for StagerError
impl Unpin for StagerError
impl !UnwindSafe for StagerError
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