Class NoDefaultBranchException

All Implemented Interfaces:
Serializable

public class NoDefaultBranchException extends NoSuchEntityException
Thrown to indicate the configured default branch for a repository does not exist.
See Also:
  • Constructor Details

    • NoDefaultBranchException

      public NoDefaultBranchException(@Nonnull KeyedMessage message, @Nonnull String repositoryName, @Nullable String branchName)
  • Method Details

    • getBranchName

      @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
    • getRepositoryName

      @Nonnull public String getRepositoryName()
      Retrieves the name of the repository whose default branch does not exist.
      Returns:
      the repository name