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 Attribute Summary

Attributes inherited from MongoidError

#problem, #resolution, #summary

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.



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