Exception: Grumlin::UnknownMapKey

Inherits:
InternalClientError show all
Defined in:
lib/grumlin.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(key, map) ⇒ UnknownMapKey

Returns a new instance of UnknownMapKey.



131
132
133
134
135
# File 'lib/grumlin.rb', line 131

def initialize(key, map)
  @key = key
  @map = map
  super("Cannot cast key #{key} in map #{map}")
end

Instance Attribute Details

#keyObject (readonly)

Returns the value of attribute key.



129
130
131
# File 'lib/grumlin.rb', line 129

def key
  @key
end

#mapObject (readonly)

Returns the value of attribute map.



129
130
131
# File 'lib/grumlin.rb', line 129

def map
  @map
end