Package org.eclipse.jgit.api.errors
Class RefAlreadyExistsException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- org.eclipse.jgit.api.errors.GitAPIException
-
- org.eclipse.jgit.api.errors.RefAlreadyExistsException
-
- All Implemented Interfaces:
java.io.Serializable
public class RefAlreadyExistsException extends GitAPIException
Thrown when trying to create aRef
with the same name as an existing one- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description private static long
serialVersionUID
private RefUpdate.Result
updateResult
-
Constructor Summary
Constructors Constructor Description RefAlreadyExistsException(java.lang.String message)
Creates a new instance with the given message.RefAlreadyExistsException(java.lang.String message, RefUpdate.Result updateResult)
Constructor for RefAlreadyExistsException
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description RefUpdate.Result
getUpdateResult()
Retrieves theRefUpdate.Result
that caused the exception.
-
-
-
Field Detail
-
serialVersionUID
private static final long serialVersionUID
- See Also:
- Constant Field Values
-
updateResult
private final RefUpdate.Result updateResult
-
-
Constructor Detail
-
RefAlreadyExistsException
public RefAlreadyExistsException(java.lang.String message)
Creates a new instance with the given message.- Parameters:
message
- error message
-
RefAlreadyExistsException
public RefAlreadyExistsException(java.lang.String message, @Nullable RefUpdate.Result updateResult)
Constructor for RefAlreadyExistsException- Parameters:
message
- error messageupdateResult
- that caused the exception; may benull
- Since:
- 5.11
-
-
Method Detail
-
getUpdateResult
@Nullable public RefUpdate.Result getUpdateResult()
Retrieves theRefUpdate.Result
that caused the exception.- Returns:
- the
RefUpdate.Result
ornull
if unknown - Since:
- 5.11
-
-