]> git.mxchange.org Git - hub.git/blobdiff - application/hub/main/states/miner/class_BaseMinerState.php
- Renamed InvalidStateException to UnexpectedStateException
[hub.git] / application / hub / main / states / miner / class_BaseMinerState.php
index 0208d7a2cee02e901ea7aa36f07e4ae7e66ac18f..cf53991ee82dfbda8b559aef5be42fc392a99f9c 100644 (file)
@@ -38,13 +38,13 @@ class BaseMinerState 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 validateMinerStateIsActive () {
                // Just compare it...
                if (!$this instanceof MinerActiveState) {
                        // Throw the exception
-                       throw new InvalidStateException($this, self::EXCEPTION_INVALID_STATE);
+                       throw new UnexpectedStateException($this, self::EXCEPTION_INVALID_STATE);
                } // END - if
        }
 
@@ -53,13 +53,13 @@ class BaseMinerState extends BaseState {
         * it is every other state.
         *
         * @return      void
-        * @throws      InvalidStateException   If the state is not 'init'
+        * @throws      UnexpectedStateException        If the state is not 'init'
         */
        public function validateMinerStateIsInit () {
                // Just compare it...
                if (!$this instanceof MinerInitState) {
                        // Throw the exception
-                       throw new InvalidStateException($this, self::EXCEPTION_INVALID_STATE);
+                       throw new UnexpectedStateException($this, self::EXCEPTION_INVALID_STATE);
                } // END - if
        }
 
@@ -68,13 +68,13 @@ class BaseMinerState extends BaseState {
         * it is every other state.
         *
         * @return      void
-        * @throws      InvalidStateException   If the state is not 'booting'
+        * @throws      UnexpectedStateException        If the state is not 'booting'
         */
        public function validateMinerStateIsBooting () {
                // Just compare it...
                if (!$this instanceof MinerBootingState) {
                        // Throw the exception
-                       throw new InvalidStateException($this, self::EXCEPTION_INVALID_STATE);
+                       throw new UnexpectedStateException($this, self::EXCEPTION_INVALID_STATE);
                } // END - if
        }