/** * @param $bool * @throws \Savage\BooBoo\Exception\NoFormattersRegisteredException */ public function registerErrorHandler($bool) { if ($bool) { $this->errorHandler->register(); } else { $this->errorHandler->deregister(); } }