Exception: ValidationProfiler::Exceptions::ValidationRuleNotFound

Inherits:
StandardError
  • Object
show all
Defined in:
lib/validation_profiler/exceptions/validation_rule_not_found.rb

Instance Method Summary collapse

Constructor Details

#initialize(rule) ⇒ ValidationRuleNotFound

Returns a new instance of ValidationRuleNotFound.



5
6
7
# File 'lib/validation_profiler/exceptions/validation_rule_not_found.rb', line 5

def initialize(rule)
  @rule = rule
end

Instance Method Details

#to_sObject



9
10
11
12
# File 'lib/validation_profiler/exceptions/validation_rule_not_found.rb', line 9

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