1
0
Fork 0
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:
Joshua Spence 2015-06-14 14:12:57 +10:00
parent 51bf2687f0
commit a1aedff90a

View file

@ -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;