public class RefAlreadyExistsException extends GitAPIException
Ref
with the same
name as an existing oneConstructor and Description |
---|
RefAlreadyExistsException(String message)
Creates a new instance with the given message.
|
RefAlreadyExistsException(String message,
RefUpdate.Result updateResult)
Constructor for RefAlreadyExistsException
|
Modifier and Type | Method and Description |
---|---|
RefUpdate.Result |
getUpdateResult()
Retrieves the
RefUpdate.Result that caused the exception. |
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
public RefAlreadyExistsException(String message)
message
- error messagepublic RefAlreadyExistsException(String message, @Nullable RefUpdate.Result updateResult)
message
- error messageupdateResult
- that caused the exception; may be null
@Nullable public RefUpdate.Result getUpdateResult()
RefUpdate.Result
that caused the exception.RefUpdate.Result
or null
if unknownCopyright © 2021 Eclipse JGit Project. All rights reserved.