]> git.mxchange.org Git - hub.git/blobdiff - application/hub/main/states/peer/class_BasePeerState.php
Updated 'core'.
[hub.git] / application / hub / main / states / peer / class_BasePeerState.php
index 7bc1513c81c997461739c7179fd762b084cb4326..cbbc183f2e0c193e72b6840eddc53718f3aa3e09 100644 (file)
@@ -38,13 +38,13 @@ class BasePeerState extends BaseState {
         * it is every other state.
         *
         * @return      void
-        * @throws      InvalidStateException   If the state is not 'connected'
+        * @throws      UnexpectedStateException        If the state is not 'connected'
         */
        public function validatePeerStateConnected () {
                // Just compare it...
                if (!$this->isPeerStateConnected()) {
                        // Throw the exception
-                       throw new InvalidStateException($this, self::EXCEPTION_INVALID_STATE);
+                       throw new UnexpectedStateException($this, self::EXCEPTION_INVALID_STATE);
                } // END - if
        }