mirror of
https://we.phorge.it/source/phorge.git
synced 2024-12-29 17:00:59 +01:00
Use PhutilInvalidStateException
Summary: Use `PhutilInvalidStateException` in `PonderVoteEditor`. Test Plan: N/A Reviewers: epriestley, #blessed_reviewers Reviewed By: epriestley, #blessed_reviewers Subscribers: epriestley, Korvin Differential Revision: https://secure.phabricator.com/D13269
This commit is contained in:
parent
51bf2687f0
commit
a1aedff90a
1 changed files with 1 additions and 1 deletions
|
@ -25,7 +25,7 @@ final class PonderVoteEditor extends PhabricatorEditor {
|
|||
public function saveVote() {
|
||||
$actor = $this->requireActor();
|
||||
if (!$this->votable) {
|
||||
throw new Exception(pht('Must set votable before saving vote.'));
|
||||
throw new PhutilInvalidStateException('setVotable');
|
||||
}
|
||||
|
||||
$votable = $this->votable;
|
||||
|
|
Loading…
Reference in a new issue