Exception: Moleculer::Errors::InvalidActionResponse
- Inherits:
-
StandardError
- Object
- StandardError
- Moleculer::Errors::InvalidActionResponse
- Defined in:
- lib/moleculer/errors/invalid_action_response.rb
Overview
Raised when an action does not return a hash
Instance Method Summary collapse
-
#initialize(response) ⇒ InvalidActionResponse
constructor
A new instance of InvalidActionResponse.
Constructor Details
#initialize(response) ⇒ InvalidActionResponse
Returns a new instance of InvalidActionResponse.
6 7 8 |
# File 'lib/moleculer/errors/invalid_action_response.rb', line 6 def initialize(response) super "Action must return a Hash, instead it returned a #{response.class.name}" end |