Exception: Pione::RuleEngine::RuleExecutionError
- Inherits:
-
StandardError
- Object
- StandardError
- Pione::RuleEngine::RuleExecutionError
- Defined in:
- lib/pione/rule-engine/engine-exception.rb
Overview
Exception class for rule execution failure.
Direct Known Subclasses
Instance Method Summary collapse
-
#initialize(handler) ⇒ RuleExecutionError
constructor
A new instance of RuleExecutionError.
- #message ⇒ Object
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
#message ⇒ Object
13 14 15 16 17 18 19 20 |
# File 'lib/pione/rule-engine/engine-exception.rb', line 13 def "Execution error when handling the rule '%s': inputs=%s, output=%s, param_set=%s" % [ @rule_name, @inputs, @outputs, @param_set ] end |