From a1aedff90a867ab57dbc9f69a2ad9e2b17b754f8 Mon Sep 17 00:00:00 2001 From: Joshua Spence Date: Sun, 14 Jun 2015 14:12:57 +1000 Subject: [PATCH] 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 --- src/applications/ponder/editor/PonderVoteEditor.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/applications/ponder/editor/PonderVoteEditor.php b/src/applications/ponder/editor/PonderVoteEditor.php index 2edb186787..9b9085eeab 100644 --- a/src/applications/ponder/editor/PonderVoteEditor.php +++ b/src/applications/ponder/editor/PonderVoteEditor.php @@ -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;