Package org.eclipse.jgit.api.errors
Class CheckoutConflictException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- org.eclipse.jgit.api.errors.GitAPIException
-
- org.eclipse.jgit.api.errors.CheckoutConflictException
-
- All Implemented Interfaces:
java.io.Serializable
public class CheckoutConflictException extends GitAPIException
Exception thrown when a command can't succeed because of unresolved conflicts.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description private java.util.List<java.lang.String>
conflictingPaths
private static long
serialVersionUID
-
Constructor Summary
Constructors Constructor Description CheckoutConflictException(java.lang.String message)
CheckoutConflictException(java.lang.String message, java.lang.Throwable cause)
CheckoutConflictException(java.lang.String message, java.util.List<java.lang.String> conflictingPaths)
CheckoutConflictException(java.lang.String message, java.util.List<java.lang.String> conflictingPaths, java.lang.Throwable cause)
CheckoutConflictException(java.util.List<java.lang.String> conflictingPaths, CheckoutConflictException e)
Translate internal exception to API exception
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description (package private) CheckoutConflictException
addConflictingPath(java.lang.String conflictingPath)
Adds a new conflicting pathjava.util.List<java.lang.String>
getConflictingPaths()
Get conflicting paths
-
-
-
Field Detail
-
serialVersionUID
private static final long serialVersionUID
- See Also:
- Constant Field Values
-
conflictingPaths
private java.util.List<java.lang.String> conflictingPaths
-
-
Constructor Detail
-
CheckoutConflictException
public CheckoutConflictException(java.util.List<java.lang.String> conflictingPaths, CheckoutConflictException e)
Translate internal exception to API exception- Parameters:
conflictingPaths
- list of conflicting pathse
- aCheckoutConflictException
exception
-
CheckoutConflictException
CheckoutConflictException(java.lang.String message, java.lang.Throwable cause)
-
CheckoutConflictException
CheckoutConflictException(java.lang.String message, java.util.List<java.lang.String> conflictingPaths, java.lang.Throwable cause)
-
CheckoutConflictException
CheckoutConflictException(java.lang.String message)
-
CheckoutConflictException
CheckoutConflictException(java.lang.String message, java.util.List<java.lang.String> conflictingPaths)
-
-
Method Detail
-
getConflictingPaths
public java.util.List<java.lang.String> getConflictingPaths()
Get conflicting paths- Returns:
- all the paths where unresolved conflicts have been detected
-
addConflictingPath
CheckoutConflictException addConflictingPath(java.lang.String conflictingPath)
Adds a new conflicting path- Parameters:
conflictingPath
-- Returns:
this
-
-