Exception: KeyError
- Inherits:
-
IndexError
- Object
- IndexError
- KeyError
- Defined in:
- lib/cpe.rb
Overview
Ruby does not implement KeyError before 1.9
Instance Method Summary collapse
-
#initialize(message = nil) ⇒ KeyError
constructor
A new instance of KeyError.
Constructor Details
#initialize(message = nil) ⇒ KeyError
Returns a new instance of KeyError.
14 15 16 |
# File 'lib/cpe.rb', line 14 def initialize = nil super || "Key not found" end |