class KeyError

in Ruby 1.8.x
raises this exception natively. We define it to mimic Ruby 1.9’s behaviour
that is not contained in the given arguments hash. Ruby 1.9 includes and
KeyError is raised by String#% when the string contains a named placeholder

def initialize(message = nil)

def initialize(message = nil)
  super(message || "key not found")
end