Class: Exceptional::Catcher

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

Class Method Summary collapse

Class Method Details

.handle(exception, controller = nil, request = nil) ⇒ Object



4
5
6
7
8
9
# File 'lib/exceptional/catcher.rb', line 4

def handle(exception, controller=nil, request=nil)
  if Config.should_send_to_api?
    data = ExceptionData.new(exception, controller, request)
    Remote.error(data)
  end
end