GitLocalChangesOverwrittenException class Errors
A checkout or a merge was refused because it would overwrite the local state of the work tree.
Raised by GitWorktree.checkout, GitWorktree.checkoutDetached,
GitWorktree.checkoutNewBranch and GitWorkingMerge.merge when git
refuses because the local changes or the untracked files it would
overwrite are not committed. paths carries the paths git named, and is
empty when git reported none.
The underlying engine failure that reported the refusal is carried in cause when there is one.
- Inheritance
-
- Object
- GitException
- GitLocalChangesOverwrittenException
Constructors
-
GitLocalChangesOverwrittenException({List<
String> paths = const <String>[], GitException? cause}) -
Creates the refusal naming the overwritten
paths, from thecausegit reported when there is one.
Properties
- cause → GitException?
-
The underlying engine failure that reported the refusal.
final
- diagnostic → String
-
Complete technical text of the failure.
no setterinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- message → String
-
Human-readable description of what went wrong.
finalinherited
-
paths
→ List<
String> -
Paths git would overwrite and used as the reason to refuse, in the order
git named them; empty when git did not name any.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
diagnosticAtDepth(
int depth) → String -
Builds diagnostic starting
depthfailures into the cause chain.inherited -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited