Class: Exceptional::Catcher
- Inherits:
-
Object
- Object
- Exceptional::Catcher
- Defined in:
- lib/sinatra/exceptional.rb
Class Method Summary collapse
Class Method Details
.handle_with_sinatra(exception, environment, request, opts) ⇒ Object
9 10 11 12 13 14 |
# File 'lib/sinatra/exceptional.rb', line 9 def handle_with_sinatra(exception, environment, request, opts) if Config.should_send_to_api? data = SinatraExceptionData.new exception, environment, request, opts Remote.error data end end |