# File lib/handler/reactor_messaging_adapter.rb, line 43 def delegate_error(method, event) event.method = method unless event.dispatch(@handler) || dispatch(:on_error, event) dispatch(:on_unhandled, event) event.connection.close(event.context.condition) if @opts[:auto_close] end end