Exception: Avro::IO::AvroTypeError

Inherits:
AvroError
  • Object
show all
Defined in:
lib/avro/io.rb

Overview

Raised when datum is not an example of schema

Instance Method Summary collapse

Constructor Details

#initialize(expected_schema, datum) ⇒ AvroTypeError

Returns a new instance of AvroTypeError.



21
22
23
# File 'lib/avro/io.rb', line 21

def initialize(expected_schema, datum)
  super("The datum #{datum.inspect} is not an example of schema #{expected_schema}")
end