Exception: RuleAlreadyExists
- Inherits:
-
StandardError
- Object
- StandardError
- RuleAlreadyExists
- Defined in:
- lib/validation_profiler/rules/validation_rule_manager.rb
Instance Method Summary collapse
-
#initialize(key) ⇒ RuleAlreadyExists
constructor
A new instance of RuleAlreadyExists.
- #to_s ⇒ Object
Constructor Details
#initialize(key) ⇒ RuleAlreadyExists
Returns a new instance of RuleAlreadyExists.
101 102 103 |
# File 'lib/validation_profiler/rules/validation_rule_manager.rb', line 101 def initialize(key) @key = key end |
Instance Method Details
#to_s ⇒ Object
105 106 107 108 |
# File 'lib/validation_profiler/rules/validation_rule_manager.rb', line 105 def to_s key = @key "A Rule has already been registered for the key: #{key}." end |