Exception: Mongoid::Errors::NoMapReduceOutput

Inherits:
MongoidError
  • Object
show all
Defined in:
lib/mongoid/errors/no_map_reduce_output.rb

Overview

Raised when executing a map/reduce without specifying the output location.

Constant Summary

Constants inherited from MongoidError

MongoidError::BASE_KEY

Instance Method Summary collapse

Methods inherited from MongoidError

#compose_message

Constructor Details

#initialize(command) ⇒ NoMapReduceOutput

Create the new error.

Examples:

Create the new error.

NoMapReduceOutput.new({ map: "" })

Parameters:

  • command (Hash)

    The map/reduce command.

Since:

  • 3.0.0



17
18
19
20
21
# File 'lib/mongoid/errors/no_map_reduce_output.rb', line 17

def initialize(command)
  super(
    compose_message("no_map_reduce_output", { command: command })
  )
end