Module: Sp2db::ExceptionHandler
- Extended by:
- ExceptionHandler
- Included in:
- ExceptionHandler
- Defined in:
- lib/sp2db/exception_handler.rb
Instance Method Summary collapse
Instance Method Details
#handle(action, e) ⇒ Object
13 14 15 16 17 18 19 20 21 22 23 24 |
# File 'lib/sp2db/exception_handler.rb', line 13 def handle action, e case action = Sp2db.config.exception_handler[action] when :skip true when :raise raise e when Proc action.call(e) else raise e end end |
#row_import_error(e) ⇒ Object
5 6 7 |
# File 'lib/sp2db/exception_handler.rb', line 5 def row_import_error e handle __method__, e end |
#table_import_error(e) ⇒ Object
9 10 11 |
# File 'lib/sp2db/exception_handler.rb', line 9 def table_import_error e handle __method__, e end |