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.



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

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