class Mongoid::Errors::NoMapReduceOutput

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

Public Class Methods

new(command) click to toggle source

Create the new error.

@example Create the new error.

NoMapReduceOutput.new({ map: "" })

@param [ Hash ] command The map/reduce command.

@since 3.0.0

Calls superclass method
# File lib/mongoid/errors/no_map_reduce_output.rb, line 19
def initialize(command)
  super(
    compose_message("no_map_reduce_output", { command: command })
  )
end