* @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
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