public function setException(\Exception $exception) { if (!empty($exception)) { $this->exception = $exception; $this->successful = false; } }