org.netbeans.libs.git
Class GitException.CheckoutConflictException
java.lang.Object
java.lang.Throwable
java.lang.Exception
org.netbeans.libs.git.GitException
org.netbeans.libs.git.GitException.CheckoutConflictException
- All Implemented Interfaces:
- Serializable
- Enclosing class:
- GitException
public static class GitException.CheckoutConflictException
- extends GitException
Thrown when a file cannot be checked out into the working tree because it would result in a local conflict.
The code that handles the exception should resolve the conflicts before retrying the failed command.
getConflicts() can be called to get the conflicted paths.
- See Also:
- Serialized Form
| Methods inherited from class java.lang.Throwable |
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
GitException.CheckoutConflictException
public GitException.CheckoutConflictException(String[] conflicts,
Throwable cause)
- Parameters:
conflicts - array of conflicted pathscause - cause exception
GitException.CheckoutConflictException
public GitException.CheckoutConflictException(String[] conflicts)
- Parameters:
conflicts - array of conflicted paths
getConflicts
public String[] getConflicts()
- Returns:
- an array of relative paths to the root of the working tree that caused the command to fail.