protected function handleException(\Exception $exception)
    {
        $this->outputLine('<error>%s</error>', [$exception->getMessage()]);
        $this->outputLine();
        $this->outputLine('The exception details have been logged to the Flow system log.');
        $message = $this->throwableStorage->logThrowable($exception);
        $this->outputLine($message);
        $this->logger->error($message, LogEnvironment::fromMethodName(__METHOD__));
        $this->quit(1);
    }
protected function handleException(\Exception $exception)
    {
        $this->outputLine('<error>%s</error>', [$exception->getMessage()]);
        $this->outputLine();
        $this->outputLine('The exception details have been logged to the Flow system log.');
        $message = $this->throwableStorage->logThrowable($exception);
        $this->outputLine($message);
        $this->logger->error($message, LogEnvironment::fromMethodName(__METHOD__));
        $this->quit(1);
    }
protected function handleException ( \ Exception $ exception ) { $ this -> outputLine ( '<error>%s</error>' , [ $ exception -> getMessage ( ) ] ) ; $ this -> outputLine ( ) ; $ this -> outputLine ( 'The exception details have been logged to the Flow system log.' ) ; $ message = $ this -> throwableStorage -> logThrowable ( $ exception ) ; $ this -> outputLine ( $ message ) ; $ this -> logger -> error ( $ message , LogEnvironment :: fromMethodName ( __METHOD__ ) ) ; $ this -> quit ( 1 ) ; }
Output an error message and log the exception.

@param \Exception $exception
@return void
@throws StopActionException
Output an error message and log the exception .