]> git.mxchange.org Git - hub.git/blobdiff - application/hub/main/states/communicator/class_BaseCommunicatorState.php
- Renamed InvalidStateException to UnexpectedStateException
[hub.git] / application / hub / main / states / communicator / class_BaseCommunicatorState.php
index 99688600ee0a96df28eabab066baa5863bcc634e..32a05540620797ef658839ea3b8156adab07ea67 100644 (file)
@@ -38,13 +38,13 @@ class BaseCommunicatorState 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 validateCommunicatorStateIsActive () {
                // Just compare it...
                if (!$this instanceof CommunicatorActiveState) {
                        // Throw the exception
-                       throw new InvalidStateException($this, self::EXCEPTION_INVALID_STATE);
+                       throw new UnexpectedStateException($this, self::EXCEPTION_INVALID_STATE);
                } // END - if
        }
 }