Class: Apache::RubyRun

Inherits:
Object
  • Object
show all
Defined in:
lib/cgi_exception.rb

Overview

:nodoc:

Instance Method Summary collapse

Instance Method Details

#_handler_origObject



84
# File 'lib/cgi_exception.rb', line 84

alias _handler_orig handler

#handler(request) ⇒ Object

override handler() to catch and exception it to browser



87
88
89
90
91
92
93
94
95
96
97
# File 'lib/cgi_exception.rb', line 87

def handler(request)
  return _handler_orig(request)
rescue Exception => ex
  #Apache.request.set_cgi_env unless ENV.key?("GATEWAY_INTERFACE")
  ModRubyExceptionPrinter.new().handle(ex)
  if defined?(EditorKicker)
    EditorKicker.handle(ex) #if ENV['EDITOR_KICKER']
  end
  #raise ex
  return ::Apache::OK
end