Class: MiniCamel::DefaultErrorHandler

Inherits:
Object
  • Object
show all
Defined in:
lib/mini_camel/default_error_handler.rb

Instance Method Summary collapse

Instance Method Details

#call(error, exchange) ⇒ Object



9
10
11
12
13
# File 'lib/mini_camel/default_error_handler.rb', line 9

def call(error, exchange)
  raise error unless error.class.in? registered_errors

  exchange.set_error(assemble_exchange_error(error))
end