original_string: public function notifySystemWithError($exception)
      {
  
          $app = $this->application;
          // log all errors
          $app->getLogger()->error($exception->getMessage());
  
          $applicationEvent = $app->getApplicationEvent();
          $applicationEvent->setName(ApplicationInterface::EVENT_SYSTEM_ERROR);
          $app->emit($applicationEvent, $exception);
  
          return Handler::DONE;
      }
code: public function notifySystemWithError($exception)
      {
  
          $app = $this->application;
          // log all errors
          $app->getLogger()->error($exception->getMessage());
  
          $applicationEvent = $app->getApplicationEvent();
          $applicationEvent->setName(ApplicationInterface::EVENT_SYSTEM_ERROR);
          $app->emit($applicationEvent, $exception);
  
          return Handler::DONE;
      }
code_tokens: public function notifySystemWithError ( $ exception ) { $ app = $ this -> application ; // log all errors $ app -> getLogger ( ) -> error ( $ exception -> getMessage ( ) ) ; $ applicationEvent = $ app -> getApplicationEvent ( ) ; $ applicationEvent -> setName ( ApplicationInterface :: EVENT_SYSTEM_ERROR ) ; $ app -> emit ( $ applicationEvent , $ exception ) ; return Handler :: DONE ; }
docstring: Notify system after error occurs
  
  @param \Exception|\Throwable $exception
  @return int
docstring_tokens: Notify system after error occurs