Exception: Tros::AvroTypeError

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

Instance Method Summary collapse

Constructor Details

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

Returns a new instance of AvroTypeError.



29
30
31
32
# File 'lib/tros.rb', line 29

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