]> 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 1c08782a2dbd1db62d5caaae85ff659243463d6b..246bd812e0c5b9bb6730bc8feb364c303b96ce2d 100644 (file)
@@ -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
        }