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.
98 99 100 |
# File 'lib/validation_profiler/rules/validation_rule_manager.rb', line 98 def initialize(key) @key = key end |
Instance Method Details
#to_s ⇒ Object
102 103 104 105 |
# File 'lib/validation_profiler/rules/validation_rule_manager.rb', line 102 def to_s key = @key "A Rule has already been registered for the key: #{key}." end |