code: public static function handleError($code, $message, $filename = '', $line = 0)
      {
          throw new \ErrorException($message, $code, 0, $filename, $line);
      }
docs: Convert application error into exception.
  
  @param int    $code
  @param string $message
  @param string $filename
  @param int    $line
  
  @throws \ErrorException