protected function _displayException($exception)
    {
        $errorName = 'Exception:';
        if ($exception instanceof FatalErrorException) {
            $errorName = 'Fatal Error:';
        }

        if ($exception instanceof PHP7ErrorException) {
            $exception = $exception->getError();
        }

        $message = sprintf(
            '<error>%s</error> %s in [%s, line %s]',
            $errorName,
            $exception->getMessage(),
            $exception->getFile(),
            $exception->getLine()
        );
        $this->_stderr->write($message);
    }
protected function _displayException($exception)
    {
        $errorName = 'Exception:';
        if ($exception instanceof FatalErrorException) {
            $errorName = 'Fatal Error:';
        }

        if ($exception instanceof PHP7ErrorException) {
            $exception = $exception->getError();
        }

        $message = sprintf(
            '<error>%s</error> %s in [%s, line %s]',
            $errorName,
            $exception->getMessage(),
            $exception->getFile(),
            $exception->getLine()
        );
        $this->_stderr->write($message);
    }
protected function _displayException ( $ exception ) { $ errorName = 'Exception:' ; if ( $ exception instanceof FatalErrorException ) { $ errorName = 'Fatal Error:' ; } if ( $ exception instanceof PHP7ErrorException ) { $ exception = $ exception -> getError ( ) ; } $ message = sprintf ( '<error>%s</error> %s in [%s, line %s]' , $ errorName , $ exception -> getMessage ( ) , $ exception -> getFile ( ) , $ exception -> getLine ( ) ) ; $ this -> _stderr -> write ( $ message ) ; }
Prints an exception to stderr.

@param \Exception $exception The exception to handle
@return void
Prints an exception to stderr .