Class NoDefaultBranchException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
com.atlassian.bitbucket.ServiceException
com.atlassian.bitbucket.NoSuchEntityException
com.atlassian.bitbucket.repository.NoDefaultBranchException
- All Implemented Interfaces:
Serializable
Thrown to indicate the configured default branch for a repository does not exist.
- See Also:
-
Constructor Summary
ConstructorDescriptionNoDefaultBranchException
(KeyedMessage message, String repositoryName, String branchName) -
Method Summary
Modifier and TypeMethodDescriptionRetrieves the name of the branch which is configured as the default branch in the repository.Retrieves the name of the repository whose default branch does not exist.Methods inherited from class com.atlassian.bitbucket.ServiceException
getKeyedMessage, getLocalizedMessage, getMessageKey
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
NoDefaultBranchException
public NoDefaultBranchException(@Nonnull KeyedMessage message, @Nonnull String repositoryName, @Nullable String branchName)
-
-
Method Details
-
getBranchName
Retrieves the name of the branch which is configured as the default branch in the repository.- Returns:
- the branch name or
null
if unknown
-
getRepositoryName
Retrieves the name of the repository whose default branch does not exist.- Returns:
- the repository name
-