Package org.eclipse.jgit.api.errors
Class ConcurrentRefUpdateException
java.lang.Object
java.lang.Throwable
java.lang.Exception
org.eclipse.jgit.api.errors.GitAPIException
org.eclipse.jgit.api.errors.ConcurrentRefUpdateException
- All Implemented Interfaces:
Serializable
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:
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionConcurrentRefUpdateException(String message, Ref ref, RefUpdate.Result rc) Constructor for ConcurrentRefUpdateException.ConcurrentRefUpdateException(String message, Ref ref, RefUpdate.Result rc, Throwable cause) Constructor for ConcurrentRefUpdateException. -
Method Summary
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Field Details
-
serialVersionUID
private static final long serialVersionUID- See Also:
-
rc
-
ref
-
-
Constructor Details
-
ConcurrentRefUpdateException
Constructor for ConcurrentRefUpdateException.- Parameters:
message- error messageref- aRefrc- aRefUpdate.Resultcause- aThrowable
-
ConcurrentRefUpdateException
Constructor for ConcurrentRefUpdateException.- Parameters:
message- error messageref- aRefrc- aRefUpdate.Result
-
-
Method Details
-
getRef
GetRef- Returns:
- the
Refwhich was tried to by updated
-
getResult
Get result- Returns:
- the result which was returned by
RefUpdate.update()and which caused this error
-