Exception: Dry::Struct::RepeatedAttributeError

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

Instance Method Summary collapse

Constructor Details

#initialize(key) ⇒ RepeatedAttributeError

Returns a new instance of RepeatedAttributeError.



10
11
12
# File 'lib/dry/struct/errors.rb', line 10

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