/** * @param Exception $exception */ protected function writeException(\Exception $exception) { $whoopsInspector = new WhoopsInspector($exception); $this->whoopsHandler->setInspector($whoopsInspector); $this->whoopsHandler->setException($exception); $this->whoopsHandler->setRun(new WhoopsRun()); $whoopsHandleResponse = $this->whoopsHandler->handle(); $this->processWhoopsBubbling($whoopsHandleResponse); }