org.netbeans.libs.git/1 1.1

org.netbeans.libs.git
Class GitException.CheckoutConflictException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by org.netbeans.libs.git.GitException
              extended by 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

Nested Class Summary
 
Nested classes/interfaces inherited from class org.netbeans.libs.git.GitException
GitException.AuthorizationException, GitException.CheckoutConflictException, GitException.MissingObjectException, GitException.NotMergedException, GitException.RefUpdateException
 
Constructor Summary
GitException.CheckoutConflictException(String[] conflicts)
           
GitException.CheckoutConflictException(String[] conflicts, Throwable cause)
           
 
Method Summary
 String[] getConflicts()
           
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

GitException.CheckoutConflictException

public GitException.CheckoutConflictException(String[] conflicts,
                                              Throwable cause)
Parameters:
conflicts - array of conflicted paths
cause - cause exception

GitException.CheckoutConflictException

public GitException.CheckoutConflictException(String[] conflicts)
Parameters:
conflicts - array of conflicted paths
Method Detail

getConflicts

public String[] getConflicts()
Returns:
an array of relative paths to the root of the working tree that caused the command to fail.

org.netbeans.libs.git/1 1.1

Built on May 22 2012.  |  Portions Copyright 1997-2012 Oracle. All rights reserved.