KeyNotFound type

Represents an error of accessing non-existent key in a hash.

Example

h = {}
echo(h["a"])
# ... Exception of type KeyNotFound ...

Direct parent types

LookupFail
Represents an error of accessing non-existent element of a collection.
Direct subtypes: 5

Methods

exception_specific_message(knf:KeyNotFound) Source: stdlib.ngs:8002
Format KeyNotFound exception message for ENV global variable.

Returns

Str