Exception: KeyError

Inherits:
IndexError
  • Object
show all
Defined in:
lib/cpe.rb

Overview

Ruby does not implement KeyError before 1.9

Instance Method Summary collapse

Constructor Details

#initialize(message = nil) ⇒ KeyError

Returns a new instance of KeyError.



14
15
16
# File 'lib/cpe.rb', line 14

def initialize message = nil
	super message || "Key not found"
end