original_string: 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);
      }
code: 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);
      }
code_tokens: 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 ) ; }
docstring: Prints an exception to stderr.
  
  @param \Exception $exception The exception to handle
  @return void
docstring_tokens: Prints an exception to stderr .