Exception: Ruby::Enum::Errors::DuplicateKeyError

Inherits:
Base
  • Object
show all
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

Methods inherited from Base

#compose_message

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(compose_message('duplicate_key', attrs))
end