Class: Gettc::UnsupportedType

Inherits:
TypeError
  • Object
show all
Defined in:
lib/gettc/types.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(type = nil, message = "Not a valid TopCoder type") ⇒ UnsupportedType

Returns a new instance of UnsupportedType.



7
8
9
10
# File 'lib/gettc/types.rb', line 7

def initialize(type = nil, message = "Not a valid TopCoder type")
  @type = type
  super "#{message}: (#{type})"
end

Instance Attribute Details

#typeObject

Returns the value of attribute type.



5
6
7
# File 'lib/gettc/types.rb', line 5

def type
  @type
end