Example #1
0
 /**
  * Default exception handler
  *
  * When this handler is used, input_manager and output_manager singleton instances already
  * exist in the memory and can be used.
  *
  * @param Exception $e uncaught exception
  */
 public static function default_exception_handler(Exception $e)
 {
     $worker = worker::instance();
     $worker->log_exception($e);
     $output = output_manager::instance();
     $output->exception($e);
 }