Exception: Pione::RuleEngine::RuleExecutionError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/pione/rule-engine/engine-exception.rb

Overview

Exception class for rule execution failure.

Direct Known Subclasses

InvalidOutputError

Instance Method Summary collapse

Constructor Details

#initialize(handler) ⇒ RuleExecutionError

Returns a new instance of RuleExecutionError.



5
6
7
# File 'lib/pione/rule-engine/engine-exception.rb', line 5

def initialize(handler)
  @handler = handler
end

Instance Method Details

#messageObject



9
10
11
12
13
14
15
16
# File 'lib/pione/rule-engine/engine-exception.rb', line 9

def message
  "Execution error when handling the rule '%s': inputs=%s, output=%s, params=%s" % [
    @handler.rule.path,
    @handler.inputs,
    @handler.outputs,
    @handler.params.inspect
  ]
end