public class

EmptyPullRequestException

extends IntegrityException
java.lang.Object
   ↳ java.lang.Throwable
     ↳ java.lang.Exception
       ↳ java.lang.RuntimeException
         ↳ com.atlassian.stash.exception.ServiceException
           ↳ com.atlassian.stash.exception.IntegrityException
             ↳ com.atlassian.stash.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
@Deprecated EmptyPullRequestException(KeyedMessage message)
This constructor is deprecated. in 3.11 for removal in 4.0. Use EmptyPullRequestException(KeyedMessage, PullRequestRef, PullRequestRef) instead
@Deprecated EmptyPullRequestException(PullRequestRef fromRef, PullRequestRef toRef, KeyedMessage message)
This constructor is deprecated. in 3.11 for removal in 4.0. Use EmptyPullRequestException(KeyedMessage, PullRequestRef, PullRequestRef) instead
EmptyPullRequestException(KeyedMessage message, PullRequestRef fromRef, PullRequestRef toRef)
Public Methods
@Nullable PullRequestRef getFromRef()
@Nullable PullRequestRef getToRef()
[Expand]
Inherited Methods
From class com.atlassian.stash.exception.ServiceException
From class java.lang.Throwable
From class java.lang.Object

Public Constructors

@Deprecated public EmptyPullRequestException (KeyedMessage message)

This constructor is deprecated.
in 3.11 for removal in 4.0. Use EmptyPullRequestException(KeyedMessage, PullRequestRef, PullRequestRef) instead

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

This constructor is deprecated.
in 3.11 for removal in 4.0. Use EmptyPullRequestException(KeyedMessage, PullRequestRef, PullRequestRef) instead

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

@Nullable public PullRequestRef getFromRef ()

@Nullable public PullRequestRef getToRef ()