]> git.mxchange.org Git - hub.git/blobdiff - application/hub/main/states/cruncher/class_BaseCruncherState.php
- Renamed InvalidStateException to UnexpectedStateException
[hub.git] / application / hub / main / states / cruncher / class_BaseCruncherState.php
index e849574cdb567d74560815c77af55eeb52e4096a..246bd812e0c5b9bb6730bc8feb364c303b96ce2d 100644 (file)
@@ -2,11 +2,11 @@
 /**
  * A general cruncher state class
  *
- * @author             Roland Haeder <webmaster@ship-simu.org>
+ * @author             Roland Haeder <webmaster@shipsimu.org>
  * @version            0.0.0
- * @copyright  Copyright (c) 2007, 2008 Roland Haeder, 2009 - 2012 Hub Developer Team
+ * @copyright  Copyright (c) 2011 - 2014 Cruncher Developer Team
  * @license            GNU GPL 3.0 or any newer version
- * @link               http://www.ship-simu.org
+ * @link               http://www.shipsimu.org
  *
  * This program is free software: you can redistribute it and/or modify
  * it under the terms of the GNU General Public License as published by
@@ -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
        }