mirror of
https://we.phorge.it/source/arcanist.git
synced 2024-11-29 02:02:40 +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:
parent
9a7c4d87a8
commit
3414cbeda5
1 changed files with 2 additions and 2 deletions
|
@ -18,13 +18,13 @@ final class ArcanistCloseWorkflow extends ArcanistWorkflow {
|
||||||
|
|
||||||
private function getStatusOptions() {
|
private function getStatusOptions() {
|
||||||
if ($this->statusData === null) {
|
if ($this->statusData === null) {
|
||||||
throw new Exception(pht('Call %s first!', 'loadStatusData()'));
|
throw new PhutilInvalidStateException('loadStatusData');
|
||||||
}
|
}
|
||||||
return idx($this->statusData, 'statusMap');
|
return idx($this->statusData, 'statusMap');
|
||||||
}
|
}
|
||||||
private function getDefaultClosedStatus() {
|
private function getDefaultClosedStatus() {
|
||||||
if ($this->statusData === null) {
|
if ($this->statusData === null) {
|
||||||
throw new Exception(pht('Call %s first!', 'loadStatusData()'));
|
throw new PhutilInvalidStateException('loadStatusData');
|
||||||
}
|
}
|
||||||
return idx($this->statusData, 'defaultClosedStatus');
|
return idx($this->statusData, 'defaultClosedStatus');
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue