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

ActionError, InvalidOutputError, UnknownRule

Instance Method Summary collapse

Constructor Details

#initialize(handler) ⇒ RuleExecutionError

Returns a new instance of RuleExecutionError.



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

def initialize(handler)
  @rule_name = handler.rule_name
  @inputs = handler.inputs
  @outputs = handler.outputs
  @params = handler.param_set
  @package_id = handler.package_id
end

Instance Method Details

#messageObject



13
14
15
16
17
18
19
20
# File 'lib/pione/rule-engine/engine-exception.rb', line 13

def message
  "Execution error when handling the rule '%s': inputs=%s, output=%s, param_set=%s" % [
    @rule_name,
    @inputs,
    @outputs,
    @param_set
  ]
end