Sha256: 0ce71c2eeb38e08d942fbe5682d91e8f7a54f9f0ba4b3a44b728454438397845

Contents?: true

Size: 286 Bytes

Versions: 4

Compression:

Stored size: 286 Bytes

Contents

module Moleculer
  module Errors
    ##
    # Raised when an action does not return a hash
    class InvalidActionResponse < StandardError
      def initialize(response)
        super "Action must return a Hash, instead it returned a #{response.class.name}"
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
moleculer-0.3.0 lib/moleculer/errors/invalid_action_response.rb
moleculer-0.2.0 lib/moleculer/errors/invalid_action_response.rb
moleculer-0.1.1 lib/moleculer/errors/invalid_action_response.rb
moleculer-0.1.0 lib/moleculer/errors/invalid_action_response.rb