Exception: Avro::AvroTypeError

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

Instance Method Summary collapse

Constructor Details

#initialize(schm = nil, datum = nil, msg = nil) ⇒ AvroTypeError

Returns a new instance of AvroTypeError.



20
21
22
23
# File 'lib/avro-patches.rb', line 20

def initialize(schm=nil, datum=nil, msg=nil)
  msg ||= "Not a #{schm.to_s}: #{datum}"
  super(msg)
end