Class 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
    • 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 path
      java.util.List<java.lang.String> getConflictingPaths()
      Get conflicting paths
      • Methods inherited from class java.lang.Throwable

        addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Field Detail

      • 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 paths
        e - a CheckoutConflictException 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