Exception: Mongoid::Errors::NoMapReduceOutput

Inherits:
MongoidError
  • Object
show all
Defined in:
build/mongoid-7.3/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.

Since:

  • 3.0.0



19
20
21
22
23
# File 'build/mongoid-7.3/lib/mongoid/errors/no_map_reduce_output.rb', line 19

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