Exception: Dry::Types::RepeatedAttributeError

Inherits:
ArgumentError
  • Object
show all
Defined in:
lib/dry/types/errors.rb

Instance Method Summary collapse

Constructor Details

#initialize(key) ⇒ RepeatedAttributeError

Returns a new instance of RepeatedAttributeError.



22
23
24
# File 'lib/dry/types/errors.rb', line 22

def initialize(key)
  super("Attribute :#{key} has already been defined")
end