elixir · elixir/KeyError
KeyError
KeyError
Raised when a key is not found, e.g. by Map.fetch!/2, Keyword.fetch!/2, or the map.key access syntax.
Also defined in
- julia Key Not Found A dictionary lookup or similar keyed access failed because the key does not exist. Use get(dict, key, default) or haskey(dict, key) to avoid the error when the key's presence is uncertain.
- python KeyError Raised when a mapping key is not found in the set of existing keys. The missing key is stored as the first argument.
- ruby KeyError Raised by Hash#fetch and similar methods when a key is not found and no default is provided.