Exception: Dry::Struct::RepeatedAttributeError
- Inherits:
-
ArgumentError
- Object
- ArgumentError
- Dry::Struct::RepeatedAttributeError
- Defined in:
- lib/dry/struct/errors.rb
Overview
Raised when defining duplicate attributes
Instance Method Summary collapse
-
#initialize(key) ⇒ RepeatedAttributeError
constructor
A new instance of RepeatedAttributeError.
Constructor Details
#initialize(key) ⇒ RepeatedAttributeError
Returns a new instance of RepeatedAttributeError.
12 13 14 |
# File 'lib/dry/struct/errors.rb', line 12 def initialize(key) super("Attribute :#{key} has already been defined") end |