Exception: Mediate::Errors::NoHandlerError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/mediate/errors/no_handler_error.rb

Overview

Indicates that a Mediate::Request was sent to the Mediator, but no Mediate::RequestHandler

was registered to handle it.

Instance Method Summary collapse

Constructor Details

#initialize(request_class) ⇒ NoHandlerError

Returns a new instance of NoHandlerError.



13
14
15
# File 'lib/mediate/errors/no_handler_error.rb', line 13

def initialize(request_class)
  super("No handler for #{request_class}. Call handles(#{request_class}) on a RequestHandler to register.")
end