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

public Class RefAlreadyExistsException

extends GitAPIException
Class Inheritance
Imports
org.eclipse.jgit.annotations.Nullable, org.eclipse.jgit.lib.RefUpdate

Thrown when trying to create a org.eclipse.jgit.lib.Ref with the same name as an existing one

Field Summary

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

Constructor Summary

AccessConstructor and Description
public
RefAlreadyExistsException(String
error message
message
)

Creates a new instance with the given message.

public
RefAlreadyExistsException(String
error message
message
,
RefUpdate.Result
that caused the exception; may be null
updateResult
)

Constructor for RefAlreadyExistsException

Method Summary

Modifier and TypeMethod and Description
public RefUpdate.Result

Returns:

the RefUpdate.Result or null if unknown
getUpdateResult
()

Retrieves the RefUpdate.Result that caused the exception.

Field Detail

serialVersionUIDback to summary
private static final long serialVersionUID

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

updateResultback to summary
private final RefUpdate.Result updateResult

Constructor Detail

RefAlreadyExistsExceptionback to summary
public RefAlreadyExistsException(String message)

Creates a new instance with the given message.

Parameters
message:String

error message

RefAlreadyExistsExceptionback to summary
public RefAlreadyExistsException(String message, RefUpdate.Result updateResult)

Constructor for RefAlreadyExistsException

Parameters
message:String

error message

updateResult:RefUpdate.Result

that caused the exception; may be null

Since
5.11

Method Detail

getUpdateResultback to summary
public RefUpdate.Result getUpdateResult()

Retrieves the RefUpdate.Result that caused the exception.

Returns:RefUpdate.Result

the RefUpdate.Result or null if unknown

Annotations
@Nullable
Since
5.11