Package com.atlassian.bitbucket.pull
Class EmptyPullRequestException
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
- All Implemented Interfaces:
Serializable
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.
- See Also:
-
Constructor Summary
ConstructorDescriptionEmptyPullRequestException
(KeyedMessage message, PullRequestRef fromRef, PullRequestRef toRef) -
Method Summary
Methods inherited from class com.atlassian.bitbucket.ServiceException
getKeyedMessage, getLocalizedMessage, getMessageKey
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
EmptyPullRequestException
public EmptyPullRequestException(@Nonnull KeyedMessage message, @Nonnull PullRequestRef fromRef, @Nonnull PullRequestRef toRef) - Parameters:
message
- a message explaining why the pull request could not be createdfromRef
- the requested "from" ref for the pull requesttoRef
- the requested "to" ref for the pull request
-
-
Method Details
-
getFromRef
-
getToRef
-