Exception: Xommelier::TypeError

Inherits:
Error
  • Object
show all
Defined in:
lib/xommelier.rb

Overview

Typecasting error

Instance Method Summary collapse

Constructor Details

#initialize(object, type) ⇒ TypeError

Returns a new instance of TypeError.



35
36
37
# File 'lib/xommelier.rb', line 35

def initialize(object, type)
  super("Cannot typecast #{object.inspect} to #{type}")
end