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
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');
}