[][src]Enum git_topic_stage::StagerError

pub enum StagerError {
    Git {
        source: GitError,
    },
    WorkArea {
        source: WorkAreaError,
    },
    InvalidIntegrationBranch {
        commit: CommitId,
        reason: InvalidCommitReason,
    },
    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,
    },
    // some variants omitted
}

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

Git

An error occurred when working with Git itself.

Fields of Git

source: GitError

The cause of the error.

WorkArea

An error occurred when working with the workarea.

Fields of WorkArea

source: WorkAreaError

The cause of the error.

InvalidIntegrationBranch

The integration branch is invalid.

Fields of InvalidIntegrationBranch

commit: CommitId

The merge commit into the integration branch.

reason: InvalidCommitReason

Why the branch is invalid.

CreateStageRef

An error occurred when creating a stage ref.

Fields of CreateStageRef

stage: CommitId

The ref that could not be made.

base: CommitId

What it should have been updated to.

output: String

Git's error output.

ListStageHistory

An error occurred when listing the stage's history.

Fields of ListStageHistory

output: String

Git's error output.

ExtractMergeInfo

An error occurred when extracting topic information from a merge.

Fields of ExtractMergeInfo

output: String

Git's error output.

InvalidStageMerge

An invalid merge into the stage was found.

Fields of InvalidStageMerge

commit: CommitId

The invalid merge commit.

log_info: String

The log information extracted from the commit.

CannotUnstageBase

The base commit cannot be unstaged.

DateParse

An invalid commit date was found.

Fields of DateParse

source: ParseError

The date parse error.

IdParse

An invalid topic ID was found.

Fields of IdParse

source: ParseIntError

The integer parse error.

Trait Implementations

impl From<GitError> for StagerError[src]

impl From<WorkAreaError> for StagerError[src]

impl Display for StagerError[src]

impl Debug for StagerError[src]

impl Error for StagerError[src]

Auto Trait Implementations

Blanket Implementations

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> From<T> for T[src]

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]