com.microsoft.tfs.core.clients.versioncontrol.exceptions
Class CheckinException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by com.microsoft.tfs.core.exceptions.TECoreException
                  extended by com.microsoft.tfs.core.exceptions.TEClientException
                      extended by com.microsoft.tfs.core.clients.versioncontrol.exceptions.VersionControlException
                          extended by com.microsoft.tfs.core.clients.versioncontrol.exceptions.CheckinException
All Implemented Interfaces:
java.io.Serializable

public final class CheckinException
extends VersionControlException

An exception thrown when a checkin fails. Whether the problem can be resolved or not can be determined by invoking the isAnyResolvable() method.

See Also:
Serialized Form
Since:
TEE-SDK-10.1

Constructor Summary
CheckinException(CheckinConflict[] checkinConflicts, boolean anyResolvable, boolean allConflictsResolved, java.lang.String message)
           
CheckinException(CheckinConflict[] checkinConflicts, boolean anyResolvable, boolean allConflictsResolved, java.lang.String message, java.lang.Throwable cause)
           
CheckinException(CheckinConflict[] checkinConflicts, boolean anyResolvable, boolean allConflictsResolved, java.lang.Throwable cause)
           
 
Method Summary
 boolean allConflictsResolved()
           
 CheckinConflict[] getCheckinConflicts()
           
 boolean isAnyResolvable()
           
 
Methods inherited from class com.microsoft.tfs.core.clients.versioncontrol.exceptions.VersionControlException
getProperties, setProperties
 
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

CheckinException

public CheckinException(CheckinConflict[] checkinConflicts,
                        boolean anyResolvable,
                        boolean allConflictsResolved,
                        java.lang.String message)

CheckinException

public CheckinException(CheckinConflict[] checkinConflicts,
                        boolean anyResolvable,
                        boolean allConflictsResolved,
                        java.lang.Throwable cause)

CheckinException

public CheckinException(CheckinConflict[] checkinConflicts,
                        boolean anyResolvable,
                        boolean allConflictsResolved,
                        java.lang.String message,
                        java.lang.Throwable cause)
Method Detail

getCheckinConflicts

public CheckinConflict[] getCheckinConflicts()
Returns:
the CheckinConflicts that prevented this checkin from occurring

isAnyResolvable

public boolean isAnyResolvable()
Returns:
true if any of the items preventing the checkin from occurring are resolvable, false if they are all not resolvable.

allConflictsResolved

public boolean allConflictsResolved()
Returns:
true if the conflicts were all automatically resolved, false otherwise


© 2015 Microsoft. All rights reserved.