Exception: ValidationProfiler::Exceptions::ValidationRuleNotFound
- Inherits:
-
StandardError
- Object
- StandardError
- ValidationProfiler::Exceptions::ValidationRuleNotFound
- Defined in:
- lib/validation_profiler/exceptions/validation_rule_not_found.rb
Instance Method Summary collapse
-
#initialize(rule) ⇒ ValidationRuleNotFound
constructor
A new instance of ValidationRuleNotFound.
- #to_s ⇒ Object
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_s ⇒ Object
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 |