]> git.mxchange.org Git - hub.git/blobdiff - application/hub/main/states/crawler/class_BaseCrawlerState.php
- Renamed InvalidStateException to UnexpectedStateException
[hub.git] / application / hub / main / states / crawler / class_BaseCrawlerState.php
index 03dbf5ffa3718be35245d41b1c8c767649cd5956..fbb75fda415d5c6890ba87bdf2fe6c674fdbafc4 100644 (file)
@@ -38,13 +38,13 @@ class BaseCrawlerState 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 validateCrawlerStateIsActive () {
                // Just compare it...
                if (!$this instanceof CrawlerActiveState) {
                        // Throw the exception
-                       throw new InvalidStateException($this, self::EXCEPTION_INVALID_STATE);
+                       throw new UnexpectedStateException($this, self::EXCEPTION_INVALID_STATE);
                } // END - if
        }
 }