]> 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 e95c5c3624acc2b36ee6c7ced502432c47cf732c..cbbc183f2e0c193e72b6840eddc53718f3aa3e09 100644 (file)
@@ -2,11 +2,11 @@
 /**
  * A general peer state class
  *
- * @author             Roland Haeder <webmaster@ship-simu.org>
+ * @author             Roland Haeder <webmaster@shipsimu.org>
  * @version            0.0.0
- * @copyright  Copyright (c) 2007, 2008 Roland Haeder, 2009 - 2011 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.ship-simu.org
+ * @link               http://www.shipsimu.org
  *
  * This program is free software: you can redistribute it and/or modify
  * it under the terms of the GNU General Public License as published by
@@ -38,20 +38,20 @@ 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
        }
 
        /**
         * Checks whether the peer's state is 'connected'
         *
-        * @return      $isConnected                    Whether the state is 'connected'
+        * @return      $isConnected    Whether the state is 'connected'
         */
        public function isPeerStateConnected () {
                // Just compare it...