Exception: CartoJson::InvalidTypeError

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(type, message) ⇒ InvalidTypeError

Returns a new instance of InvalidTypeError.



11
12
13
14
# File 'lib/carto_json/errors.rb', line 11

def initialize(type, message)
  @type = type.to_sym
  super message
end

Instance Attribute Details

#typeObject (readonly)

Returns the value of attribute type.



9
10
11
# File 'lib/carto_json/errors.rb', line 9

def type
  @type
end