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:
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
-
-
Field Summary
Fields Modifier and Type Field Description private RefUpdate.Result
rc
private Ref
ref
private static long
serialVersionUID
-
Constructor Summary
Constructors Constructor Description ConcurrentRefUpdateException(java.lang.String message, Ref ref, RefUpdate.Result rc)
Constructor for ConcurrentRefUpdateException.ConcurrentRefUpdateException(java.lang.String message, Ref ref, RefUpdate.Result rc, java.lang.Throwable cause)
Constructor for ConcurrentRefUpdateException.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Ref
getRef()
GetRef
RefUpdate.Result
getResult()
Get result
-
-
-
Field Detail
-
serialVersionUID
private static final long serialVersionUID
- See Also:
- Constant Field Values
-
rc
private RefUpdate.Result rc
-
ref
private Ref ref
-
-
Constructor Detail
-
ConcurrentRefUpdateException
public ConcurrentRefUpdateException(java.lang.String message, Ref ref, RefUpdate.Result rc, java.lang.Throwable cause)
Constructor for ConcurrentRefUpdateException.- Parameters:
message
- error messageref
- aRef
rc
- aRefUpdate.Result
cause
- aThrowable
-
ConcurrentRefUpdateException
public ConcurrentRefUpdateException(java.lang.String message, Ref ref, RefUpdate.Result rc)
Constructor for ConcurrentRefUpdateException.- Parameters:
message
- error messageref
- aRef
rc
- aRefUpdate.Result
-
-
Method Detail
-
getResult
public RefUpdate.Result getResult()
Get result- Returns:
- the result which was returned by
RefUpdate.update()
and which caused this error
-
-