Class: Apache::RubyRun

Inherits:
Object
  • Object
show all
Defined in:
lib/cyberweb/cgi/exceptions.rb

Overview

Handle mod_ruby here.

Instance Method Summary collapse

Instance Method Details

#_handler_origObject



168
# File 'lib/cyberweb/cgi/exceptions.rb', line 168

alias _handler_orig handler

#handler(request) ⇒ Object

#

handler

override handler() to catch and exception it to browser.

#


175
176
177
178
179
180
181
# File 'lib/cyberweb/cgi/exceptions.rb', line 175

def handler(request)
  return _handler_orig(request)
rescue Exception => error
  # Apache.request.set_cgi_env unless ENV.key?('GATEWAY_INTERFACE')
  ::Cyberweb::ModRubyExceptionPrinter.new.handle(error)
  return ::Apache::OK
end