Class: Relaxo::QueryServer::ReducingProcess
- Defined in:
- lib/relaxo/query_server/reducer.rb
Overview
Call the reduction function, and if it fails, respond with an error message.
Instance Method Summary collapse
Methods inherited from Process
#call, #initialize, #log, #run
Constructor Details
This class inherits a constructor from Relaxo::QueryServer::Process
Instance Method Details
#evaluate(*args) ⇒ Object
28 29 30 31 32 33 34 35 |
# File 'lib/relaxo/query_server/reducer.rb', line 28 def evaluate(*args) begin call(*args) rescue Exception => exception # If the mapping function throws an error, report the error for this document: @context.error_for_exception(exception) end end |