Exception: VORuby::VOTables::VOTable::Misc::TypeException

Inherits:
Exception
  • Object
show all
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

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