Class ConcurrentRefUpdateException

  • All Implemented Interfaces:
    java.io.Serializable

    public class ConcurrentRefUpdateException
    extends GitAPIException
    Exception thrown when a command wants to update a ref but failed because another process is accessing (or even also updating) the ref.
    See Also:
    RefUpdate.Result.LOCK_FAILURE, Serialized Form
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      Ref getRef()
      Get Ref
      RefUpdate.Result getResult()
      Get result
      • 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

      • ConcurrentRefUpdateException

        public ConcurrentRefUpdateException​(java.lang.String message,
                                            Ref ref,
                                            RefUpdate.Result rc,
                                            java.lang.Throwable cause)
        Constructor for ConcurrentRefUpdateException.
        Parameters:
        message - error message
        ref - a Ref
        rc - a RefUpdate.Result
        cause - a Throwable
      • ConcurrentRefUpdateException

        public ConcurrentRefUpdateException​(java.lang.String message,
                                            Ref ref,
                                            RefUpdate.Result rc)
        Constructor for ConcurrentRefUpdateException.
        Parameters:
        message - error message
        ref - a Ref
        rc - a RefUpdate.Result
    • Method Detail

      • getRef

        public Ref getRef()
        Get Ref
        Returns:
        the Ref which was tried to by updated