Class: Makara::ErrorHandler
- Inherits:
-
Object
- Object
- Makara::ErrorHandler
- Defined in:
- lib/makara/error_handler.rb
Direct Known Subclasses
ActiveRecord::ConnectionAdapters::MakaraAbstractAdapter::ErrorHandler
Instance Method Summary collapse
Instance Method Details
#handle(connection) ⇒ Object
9 10 11 12 13 14 15 16 17 18 19 20 |
# File 'lib/makara/error_handler.rb', line 9 def handle(connection) yield rescue Exception => e if e.class.name =~ /^Makara::/ harshly(e) else gracefully(connection, e) end end |