Class: FastResponder

Inherits:
HK::Controller show all
Defined in:
lib/hotchkiss/fast_responder.rb

Instance Method Summary collapse

Methods inherited from HK::Controller

#call

Instance Method Details

#on_exceptionObject



3
4
5
6
7
8
9
10
# File 'lib/hotchkiss/fast_responder.rb', line 3

def on_exception
  e = request.env["hk.exception"]
  status 500
  @class = e.class
  @message = e.message
  @backtrace = e.backtrace
  "<html><title>ERROR</title><body>#{@class} : #{@message}<br />#{@backtrace.join("<br />")}</body><html>"
end