Exception: VORuby::VOTables::VOTable::Misc::TypeException
- Defined in:
- lib/voruby/votables/misc.rb
Overview
An exception thrown when the incoming type does not match the expected value.
Instance Method Summary collapse
-
#initialize(obj = nil, prototype = nil) ⇒ TypeException
constructor
- obj:
-
The object itself.
Constructor Details
#initialize(obj = nil, prototype = nil) ⇒ TypeException
- obj:
-
The object itself.
- prototype:
-
The prototype of the expected class.
16 17 18 |
# File 'lib/voruby/votables/misc.rb', line 16 def initialize(obj=nil, prototype=nil) super("Invalid type: #{obj.class} (#{obj}) != #{prototype}") end |