class Pione::RuleEngine::RuleExecutionError

Exception class for rule execution failure.

Public Class Methods

new(handler) click to toggle source
# 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

Public Instance Methods

message() click to toggle source
# 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