unless defined? KeyError class KeyError < StandardError; end end