]> 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 a8aca10cbecd2d9557e2efd8064616a6fdd8ecc2..cbbc183f2e0c193e72b6840eddc53718f3aa3e09 100644 (file)
@@ -4,7 +4,7 @@
  *
  * @author             Roland Haeder <webmaster@shipsimu.org>
  * @version            0.0.0
- * @copyright  Copyright (c) 2007, 2008 Roland Haeder, 2009 - 2014 Hub Developer Team
+ * @copyright  Copyright (c) 2007, 2008 Roland Haeder, 2009 - 2015 Hub Developer Team
  * @license            GNU GPL 3.0 or any newer version
  * @link               http://www.shipsimu.org
  *
@@ -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
        }