Exception: ValidationRuleNotFound

Inherits:
StandardError
  • Object
show all
Defined in:
lib/validation_profiler/rules/validation_rule_manager.rb

Instance Method Summary collapse

Constructor Details

#initialize(rule) ⇒ ValidationRuleNotFound

Returns a new instance of ValidationRuleNotFound.



75
76
77
# File 'lib/validation_profiler/rules/validation_rule_manager.rb', line 75

def initialize(rule)
  @rule = rule
end

Instance Method Details

#to_sObject



79
80
81
82
# File 'lib/validation_profiler/rules/validation_rule_manager.rb', line 79

def to_s
  rule = @rule
  "Validation rule: #{rule} could not be found."
end