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:
Serializable
public class RefAlreadyExistsException extends GitAPIException
Thrown when trying to create aRef
with the same name as an existing one- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description RefAlreadyExistsException(String message)
Creates a new instance with the given message.RefAlreadyExistsException(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.-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-
-
-
Constructor Detail
-
RefAlreadyExistsException
public RefAlreadyExistsException(String message)
Creates a new instance with the given message.- Parameters:
message
- error message
-
RefAlreadyExistsException
public RefAlreadyExistsException(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
-
-