public class

EmptyPullRequestException

extends IntegrityException
java.lang.Object
   ↳ java.lang.Throwable
     ↳ java.lang.Exception
       ↳ java.lang.RuntimeException
         ↳ com.atlassian.bitbucket.ServiceException
           ↳ com.atlassian.bitbucket.IntegrityException
             ↳ com.atlassian.bitbucket.pull.EmptyPullRequestException

Class Overview

Indicates a pull request could not be created because it would have no commits. Each pull request is required to pull in at least one new commit.

Summary

Public Constructors
EmptyPullRequestException(KeyedMessage message, PullRequestRef fromRef, PullRequestRef toRef)
Public Methods
@Nonnull PullRequestRef getFromRef()
@Nonnull PullRequestRef getToRef()
[Expand]
Inherited Methods
From class com.atlassian.bitbucket.ServiceException
From class java.lang.Throwable
From class java.lang.Object

Public Constructors

public EmptyPullRequestException (KeyedMessage message, PullRequestRef fromRef, PullRequestRef toRef)

Parameters
message a message explaining why the pull request could not be created
fromRef the requested "from" ref for the pull request
toRef the requested "to" ref for the pull request

Public Methods

@Nonnull public PullRequestRef getFromRef ()

@Nonnull public PullRequestRef getToRef ()