1
0
Fork 0
mirror of https://we.phorge.it/source/arcanist.git synced 2024-11-28 17:52:42 +01:00

Use PhutilInvalidStateException

Summary: Use `PhutilInvalidStateException` where appropriate.

Test Plan: N/A

Reviewers: epriestley, #blessed_reviewers

Reviewed By: epriestley, #blessed_reviewers

Subscribers: epriestley, Korvin

Differential Revision: https://secure.phabricator.com/D13333
This commit is contained in:
Joshua Spence 2015-06-18 22:41:29 +10:00
parent 9a7c4d87a8
commit 3414cbeda5

View file

@ -18,13 +18,13 @@ final class ArcanistCloseWorkflow extends ArcanistWorkflow {
private function getStatusOptions() {
if ($this->statusData === null) {
throw new Exception(pht('Call %s first!', 'loadStatusData()'));
throw new PhutilInvalidStateException('loadStatusData');
}
return idx($this->statusData, 'statusMap');
}
private function getDefaultClosedStatus() {
if ($this->statusData === null) {
throw new Exception(pht('Call %s first!', 'loadStatusData()'));
throw new PhutilInvalidStateException('loadStatusData');
}
return idx($this->statusData, 'defaultClosedStatus');
}