public class

NoDefaultBranchException

extends NoSuchEntityException
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

Class Overview

Thrown to indicate the configured default branch for a repository does not exist.

Summary

Public Constructors
NoDefaultBranchException(KeyedMessage message, String repositoryName, String branchName)
Public Methods
@Nullable String getBranchName()
Retrieves the name of the branch which is configured as the default branch in the repository.
@Nonnull String getRepositoryName()
Retrieves the name of the repository whose default branch does not exist.
[Expand]
Inherited Methods
From class com.atlassian.bitbucket.ServiceException
From class java.lang.Throwable
From class java.lang.Object

Public Constructors

public NoDefaultBranchException (KeyedMessage message, String repositoryName, String branchName)

Public Methods

@Nullable public String 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

@Nonnull public String getRepositoryName ()

Retrieves the name of the repository whose default branch does not exist.

Returns
  • the repository name