Top Level Namespace
Defined Under Namespace
Modules: Base64, Errplane, Resque Classes: ErrplaneGenerator
Instance Method Summary collapse
Instance Method Details
#handle_exception(e) ⇒ Object
12 13 14 15 16 17 18 19 20 21 22 23 |
# File 'lib/errplane/sinatra.rb', line 12 def handle_exception(e) request_data = { :request_url => request.env["REQUEST_URI"], :user_agent => request.env["HTTP_USER_AGENT"], :params => request.env["rack.request.query_hash"], :action => request.env["REQUEST_PATH"], :session => (defined?(session) ? session : request.env["rack.session"]) || {} } Errplane.transmit_unless_ignorable(e, request_data) raise e end |