Exception: Avro::Builder::DuplicateDefinitionError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/avro/builder/errors.rb

Instance Method Summary collapse

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