Module: DebugLogging::LambDarts::ErrorHandle
- Defined in:
- lib/debug_logging/lamb_darts/error_handle.rb
Instance Method Summary collapse
Instance Method Details
#_dl_ld_error_handle(ld) ⇒ Object
4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 |
# File 'lib/debug_logging/lamb_darts/error_handle.rb', line 4 def _dl_ld_error_handle(ld) if ld.config_proxy.error_handler_proc begin yield rescue StandardError => e if ld.error_handler_proc ld.error_handler_proc.call( ld.config_proxy, e, self, ld.decorated_method, *ld.args, **ld.kwargs, ) else raise e end end else yield end end |