original_string: public static function get_exception_handler() {
          return function($ex) {
              $info = get_exception_info($ex);
  
              $logerrmsg = "enrol_paypal IPN exception handler: ".$info->message;
              if (debugging('', DEBUG_NORMAL)) {
                  $logerrmsg .= ' Debug: '.$info->debuginfo."\n".format_backtrace($info->backtrace, true);
              }
              error_log($logerrmsg);
  
              if (http_response_code() == 200) {
                  http_response_code(500);
              }
  
              exit(0);
          };
      }
code: public static function get_exception_handler() {
          return function($ex) {
              $info = get_exception_info($ex);
  
              $logerrmsg = "enrol_paypal IPN exception handler: ".$info->message;
              if (debugging('', DEBUG_NORMAL)) {
                  $logerrmsg .= ' Debug: '.$info->debuginfo."\n".format_backtrace($info->backtrace, true);
              }
              error_log($logerrmsg);
  
              if (http_response_code() == 200) {
                  http_response_code(500);
              }
  
              exit(0);
          };
      }
code_tokens: public static function get_exception_handler ( ) { return function ( $ ex ) { $ info = get_exception_info ( $ ex ) ; $ logerrmsg = "enrol_paypal IPN exception handler: " . $ info -> message ; if ( debugging ( '' , DEBUG_NORMAL ) ) { $ logerrmsg .= ' Debug: ' . $ info -> debuginfo . "\n" . format_backtrace ( $ info -> backtrace , true ) ; } error_log ( $ logerrmsg ) ; if ( http_response_code ( ) == 200 ) { http_response_code ( 500 ) ; } exit ( 0 ) ; } ; }
docstring: Silent exception handler.
  
  @return callable exception handler
docstring_tokens: Silent exception handler .