Exception: Ruby::Enum::Errors::DuplicateKeyError
- Defined in:
- lib/ruby-enum/errors/duplicate_key_error.rb
Overview
Error raised when a duplicate enum key is found
Instance Attribute Summary
Attributes inherited from Base
#problem, #resolution, #summary
Instance Method Summary collapse
-
#initialize(attrs) ⇒ DuplicateKeyError
constructor
A new instance of DuplicateKeyError.
Methods inherited from Base
Constructor Details
#initialize(attrs) ⇒ DuplicateKeyError
Returns a new instance of DuplicateKeyError.
8 9 10 |
# File 'lib/ruby-enum/errors/duplicate_key_error.rb', line 8 def initialize(attrs) super(('duplicate_key', attrs)) end |