Exception: Avro::Builder::DuplicateDefinitionError
- Inherits:
-
StandardError
- Object
- StandardError
- Avro::Builder::DuplicateDefinitionError
- Defined in:
- lib/avro/builder/errors.rb
Instance Method Summary collapse
-
#initialize(key, object, existing_object) ⇒ DuplicateDefinitionError
constructor
A new instance of DuplicateDefinitionError.
Constructor Details
#initialize(key, object, existing_object) ⇒ DuplicateDefinitionError
Returns a new instance of DuplicateDefinitionError.
16 17 18 19 20 |
# File 'lib/avro/builder/errors.rb', line 16 def initialize(key, object, existing_object) super("definition for #{key.inspect} already exists\n"\ "existing definition:\n#{to_json(existing_object)}\n"\ "new definition:\n#{to_json(object)})") end |