]> git.mxchange.org Git - core.git/blobdiff - framework/main/classes/stacker/class_BaseStacker.php
Continued:
[core.git] / framework / main / classes / stacker / class_BaseStacker.php
index d823829dbdf056acec015cd08e37b7e7cc0115ed..b9f80972e0f98f9643cde122a86da2aeb2b19103 100644 (file)
@@ -63,7 +63,7 @@ abstract class BaseStacker extends BaseFrameworkSystem {
         * @param       $forceReInit    Force re-initialization
         * @return      void
         * @throws      InvalidArgumentException        If a parameter is invalid
-        * @throws      AlreadyInitializedStackerException      If the stack is already initialized
+        * @throws      BadMethodCallException  If the stack is already initialized
         */
        public function initStack (string $stackerName, bool $forceReInit = false) {
                // Validate parameter
@@ -73,8 +73,7 @@ abstract class BaseStacker extends BaseFrameworkSystem {
                        throw new InvalidArgumentException('Parameter "stackerName" is empty');
                } elseif (($forceReInit === false) && ($this->isStackInitialized($stackerName))) {
                        // Then throw the exception
-                       // @TODO Change to BMCE
-                       throw new AlreadyInitializedStackerException(array($this, $stackerName, $forceReInit), self::EXCEPTION_STACKER_ALREADY_INITIALIZED);
+                       throw new BadMethodCallException(array($this, $stackerName, $forceReInit), self::EXCEPTION_STACKER_ALREADY_INITIALIZED);
                }
 
                // Initialize the given stack and "cache" configuration entry