X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=application%2Fhub%2Fmain%2Fstates%2Fcruncher%2Fclass_BaseCruncherState.php;h=246bd812e0c5b9bb6730bc8feb364c303b96ce2d;hb=98355573139973cb7c3cdabda075492917cecde8;hp=5896dfbe8c29c0dc671fafb710946f697248cc1c;hpb=3e5e829a9284c30b1a24b720f9c43a68d920d973;p=hub.git diff --git a/application/hub/main/states/cruncher/class_BaseCruncherState.php b/application/hub/main/states/cruncher/class_BaseCruncherState.php index 5896dfbe8..246bd812e 100644 --- a/application/hub/main/states/cruncher/class_BaseCruncherState.php +++ b/application/hub/main/states/cruncher/class_BaseCruncherState.php @@ -4,7 +4,7 @@ * * @author Roland Haeder * @version 0.0.0 - * @copyright Copyright (c) 2011 - 2012 Cruncher Developer Team + * @copyright Copyright (c) 2011 - 2014 Cruncher Developer Team * @license GNU GPL 3.0 or any newer version * @link http://www.shipsimu.org * @@ -38,13 +38,13 @@ class BaseCruncherState extends BaseState { * it is every other state. * * @return void - * @throws InvalidStateException If the state is not 'active' + * @throws UnexpectedStateException If the state is not 'active' */ public function validateCruncherStateIsActive () { // Just compare it... if (!$this instanceof CruncherActiveState) { // Throw the exception - throw new InvalidStateException($this, self::EXCEPTION_INVALID_STATE); + throw new UnexpectedStateException($this, self::EXCEPTION_INVALID_STATE); } // END - if }