public function writeException(\Exception $e)
    {
        $this->lastExecSuccess = false;
        $this->context->setLastException($e);
        $this->output->writeln($this->formatException($e));
        $this->resetCodeBuffer();
    }
public function writeException(\Exception $e)
    {
        $this->lastExecSuccess = false;
        $this->context->setLastException($e);
        $this->output->writeln($this->formatException($e));
        $this->resetCodeBuffer();
    }
public function writeException ( \ Exception $ e ) { $ this -> lastExecSuccess = false ; $ this -> context -> setLastException ( $ e ) ; $ this -> output -> writeln ( $ this -> formatException ( $ e ) ) ; $ this -> resetCodeBuffer ( ) ; }
Renders a caught Exception.

Exceptions are formatted according to severity. ErrorExceptions which were
warnings or Strict errors aren't rendered as harshly as real errors.

Stores $e as the last Exception in the Shell Context.

@param \Exception $e An exception instance
Renders a caught Exception .