Class RefAlreadyExistsException

  • All Implemented Interfaces:
    java.io.Serializable

    public class RefAlreadyExistsException
    extends GitAPIException
    Thrown when trying to create a Ref with the same name as an existing one
    See Also:
    Serialized Form
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      RefUpdate.Result getUpdateResult()
      Retrieves the RefUpdate.Result that caused the exception.
      • 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
    • Constructor Detail

      • RefAlreadyExistsException

        public RefAlreadyExistsException​(java.lang.String message)
        Creates a new instance with the given message.
        Parameters:
        message - error message
      • RefAlreadyExistsException

        public RefAlreadyExistsException​(java.lang.String message,
                                         @Nullable
                                         RefUpdate.Result updateResult)
        Constructor for RefAlreadyExistsException
        Parameters:
        message - error message
        updateResult - that caused the exception; may be null
        Since:
        5.11