Exception: Avro::IO::AvroTypeError
- Defined in:
- lib/avro/io.rb
Overview
Raised when datum is not an example of schema
Instance Method Summary collapse
-
#initialize(expected_schema, datum) ⇒ AvroTypeError
constructor
A new instance of AvroTypeError.
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 |