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
Thrown when trying to create a
Ref
with the same
name as an existing one- See Also:
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionRefAlreadyExistsException
(String message) Creates a new instance with the given message.RefAlreadyExistsException
(String message, RefUpdate.Result updateResult) Constructor for RefAlreadyExistsException -
Method Summary
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Field Details
-
serialVersionUID
private static final long serialVersionUID- See Also:
-
updateResult
-
-
Constructor Details
-
RefAlreadyExistsException
Creates a new instance with the given message.- Parameters:
message
- error message
-
RefAlreadyExistsException
Constructor for RefAlreadyExistsException- Parameters:
message
- error messageupdateResult
- that caused the exception; may benull
- Since:
- 5.11
-
-
Method Details
-
getUpdateResult
Retrieves theRefUpdate.Result
that caused the exception.- Returns:
- the
RefUpdate.Result
ornull
if unknown - Since:
- 5.11
-