Top Description Fields Constructors Methods
org.eclipse.jgit.api.errors

public Class ConcurrentRefUpdateException

extends GitAPIException
Class Inheritance
Imports
java.text.MessageFormat, org.eclipse.jgit.internal.JGitText, org.eclipse.jgit.lib.Ref, .RefUpdate

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
org.eclipse.jgit.lib.RefUpdate.Result#LOCK_FAILURE

Field Summary

Modifier and TypeField and Description
private RefUpdate.Result
private Ref
private static final long

Constructor Summary

AccessConstructor and Description
public
ConcurrentRefUpdateException(String
error message
message
,
Ref ref, RefUpdate.Result rc, Throwable cause)

Constructor for ConcurrentRefUpdateException.

public
ConcurrentRefUpdateException(String
error message
message
,
Ref ref, RefUpdate.Result rc)

Constructor for ConcurrentRefUpdateException.

Method Summary

Modifier and TypeMethod and Description
public Ref

Returns:

the org.eclipse.jgit.lib.Ref which was tried to by updated
getRef
()

Get Ref

public RefUpdate.Result

Returns:

the result which was returned by org.eclipse.jgit.lib.RefUpdate#update() and which caused this error
getResult
()

Get result

Field Detail

rcback to summary
private RefUpdate.Result rc
refback to summary
private Ref ref
serialVersionUIDback to summary
private static final long serialVersionUID

Hides org.eclipse.jgit.api.errors.GitAPIException.serialVersionUID.

Constructor Detail

ConcurrentRefUpdateExceptionback to summary
public ConcurrentRefUpdateException(String message, Ref ref, RefUpdate.Result rc, Throwable cause)

Constructor for ConcurrentRefUpdateException.

Parameters
message:String

error message

ref:Ref

a org.eclipse.jgit.lib.Ref

rc:RefUpdate.Result

a org.eclipse.jgit.lib.RefUpdate.Result

cause:Throwable

a java.lang.Throwable

ConcurrentRefUpdateExceptionback to summary
public ConcurrentRefUpdateException(String message, Ref ref, RefUpdate.Result rc)

Constructor for ConcurrentRefUpdateException.

Parameters
message:String

error message

ref:Ref

a org.eclipse.jgit.lib.Ref

rc:RefUpdate.Result

a org.eclipse.jgit.lib.RefUpdate.Result

Method Detail

getRefback to summary
public Ref getRef()

Get Ref

Returns:Ref

the org.eclipse.jgit.lib.Ref which was tried to by updated

getResultback to summary
public RefUpdate.Result getResult()

Get result

Returns:RefUpdate.Result

the result which was returned by org.eclipse.jgit.lib.RefUpdate#update() and which caused this error