| java.lang.Object | ||||||
| ↳ | java.lang.Throwable | |||||
| ↳ | java.lang.Exception | |||||
| ↳ | java.lang.RuntimeException | |||||
| ↳ | com.atlassian.bitbucket.ServiceException | |||||
| ↳ | com.atlassian.bitbucket.EntityOutOfDateException | |||||
| ↳ | com.atlassian.bitbucket.pull.PullRequestOutOfDateException | |||||
A specialization of EntityOutOfDateException thrown when a PullRequest's
version is out-of-date.
|
[Expand]
Inherited Constants | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
From class
com.atlassian.bitbucket.EntityOutOfDateException
| |||||||||||
| Public Constructors | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
Constructs a
PullRequestOutOfDateException with unspecified versions. | |||||||||||
Constructs a
PullRequestOutOfDateException, providing the current PullRequest and
the version that was expected. | |||||||||||
Constructs a
PullRequestOutOfDateException, providing the current PullRequest and
the version that was expected. | |||||||||||
| Public Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
Retrieves the current state for the pull request, if it was available when the exception was thrown.
| |||||||||||
|
[Expand]
Inherited Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
From class
com.atlassian.bitbucket.EntityOutOfDateException
| |||||||||||
From class
com.atlassian.bitbucket.ServiceException
| |||||||||||
From class
java.lang.Throwable
| |||||||||||
From class
java.lang.Object
| |||||||||||
Constructs a PullRequestOutOfDateException with unspecified versions.
Because this constructor provides so little information, it should be avoided except in situaitons where
there is simply no additional information available.
| message | a message describing the error |
|---|---|
| cause | the triggering exception, or null if no cause is available
|
Constructs a PullRequestOutOfDateException, providing the current PullRequest and
the version that was expected.
| message | a message describing the error |
|---|---|
| pullRequest | the current pull request state |
| expectedVersion | the expected pull request version, generally older (lower) than the current version |
Constructs a PullRequestOutOfDateException, providing the current PullRequest and
the version that was expected.
| message | a message describing the error |
|---|---|
| cause | the triggering exception, or null if no cause is available |
| pullRequest | the current pull request state |
| expectedVersion | the expected pull request version, generally older (lower) than the current version |
Retrieves the current state for the pull request, if it was available when the exception was thrown.
When available, the version of the returned pull request will always match
the current version.
null if the current state was not available