public class

NoDefaultBranchException

extends NoSuchEntityException
java.lang.Object
   ↳ java.lang.Throwable
     ↳ java.lang.Exception
       ↳ java.lang.RuntimeException
         ↳ com.atlassian.stash.exception.ServiceException
           ↳ com.atlassian.stash.exception.NoSuchEntityException
             ↳ com.atlassian.stash.exception.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
String getBranchName()
Retrieves the name of the branch which is configured as the default branch in the repository.
String getRepositoryName()
Retrieves the name of the repository whose defautl branch does not exist.
[Expand]
Inherited Methods
From class com.atlassian.stash.exception.ServiceException
From class java.lang.Throwable
From class java.lang.Object

Public Constructors

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

Public Methods

public String getBranchName ()

Retrieves the name of the branch which is configured as the default branch in the repository.

Returns
  • the branch name

public String getRepositoryName ()

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

Returns
  • the repository name