Exception: Mediate::Errors::NoHandlerError
- Inherits:
-
StandardError
- Object
- StandardError
- Mediate::Errors::NoHandlerError
- 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
-
#initialize(request_class) ⇒ NoHandlerError
constructor
A new instance of NoHandlerError.
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 |