Exceptions thrown by API commands.
Exception Summary Exception Description AbortedByHookExceptionException thrown when a hook returns a process result with a value different from 0. CanceledExceptionException thrown when an operation was canceled CannotDeleteCurrentBranchExceptionThrown when trying to delete a branch which is currently checked out CheckoutConflictExceptionException thrown when a command can't succeed because of unresolved conflicts. ConcurrentRefUpdateExceptionException thrown when a command wants to update a ref but failed because another process is accessing (or even also updating) the ref. DetachedHeadExceptionException thrown when a command expected a non-detached
EmptyCommitExceptionException thrown when a newly created commit does not contain any changes FilterFailedExceptionException thrown when the execution of a filter command failed GitAPIExceptionSuperclass of all exceptions thrown by the API classes in
InvalidConfigurationExceptionException thrown when a command fails due to an invalid configuration InvalidMergeHeadsExceptionException thrown when a merge command was called without specifying the proper amount/type of merge heads. InvalidRebaseStepExceptionException thrown if a rebase step is invalid. InvalidRefNameExceptionException thrown when an invalid Ref name was encountered InvalidRemoteExceptionException thrown when a fetch command was called with an invalid remote InvalidTagNameExceptionException thrown when a tag command was called with an invalid tag name (or null), such as bad~tag. JGitInternalExceptionException thrown when during command execution a low-level exception from the JGit library is thrown. MultipleParentsNotAllowedExceptionThe commit to be cherry-pick'ed did not have exactly one parent NoFilepatternExceptionException thrown when the options given to a command don't include a file pattern which is mandatory for processing. NoHeadExceptionException thrown when a command expected the
HEADreference to exist but couldn't find such a reference
NoMessageExceptionException thrown when the options given to a command don't include a specification of a message text (e.g. NotMergedExceptionThrown when branch deletion fails due to unmerged data PatchApplyExceptionException thrown when applying a patch fails PatchFormatExceptionException thrown when applying a patch fails due to an invalid format RefAlreadyExistsExceptionThrown when trying to create a
Refwith the same name as an existing one
RefNotAdvertisedExceptionThrown when a ref is not found in advertised refs RefNotFoundExceptionThrown when a Ref can not be resolved ServiceUnavailableExceptionException thrown when an optional service is not available StashApplyFailureExceptionThrown from StashApplyCommand when stash apply fails TooLargeObjectInPackExceptionException thrown when PackParser finds an object larger than a predefined limit TooLargePackExceptionException thrown when the server rejected a too large pack TransportExceptionException thrown when transport operation failed UnmergedPathsExceptionThrown when branch deletion fails due to unmerged data UnsupportedSigningFormatExceptionException thrown when the configured gpg.format is not supported. WrongObjectTypeExceptionA given object is not of an expected object type. WrongRepositoryStateExceptionException thrown when the state of the repository doesn't allow the execution of a certain command.