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 |
# File 'lib/pione/rule-engine/engine-exception.rb', line 5 def initialize(handler) @handler = handler end |
Instance Method Details
#message ⇒ Object
9 10 11 12 13 14 15 16 |
# File 'lib/pione/rule-engine/engine-exception.rb', line 9 def "Execution error when handling the rule '%s': inputs=%s, output=%s, params=%s" % [ @handler.rule.path, @handler.inputs, @handler.outputs, @handler.params.inspect ] end |