Exception: Moleculer::Errors::InvalidActionResponse

Inherits:
StandardError
  • Object
show all
Defined in:
lib/moleculer/errors/invalid_action_response.rb

Overview

Raised when an action does not return a hash

Instance Method Summary collapse

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