KeyException
class in package klyn

    public class KeyException extends UncheckedException:

Object
└ Exception
└ UncheckedException
└ KeyException

Exception raised when a key lookup fails in a map-like collection.

Example

    import klyn.collections

    values = Map<String, Int>()
    try:
    values["missing"]
    catch exc as KeyException:
    println(exc.message)

Inherited Properties
property Inherited Properties from Exception: message
property Inherited Properties from Object: type
Constructors

Modifier and Type | Member | Description
--- | --- | ---
public | KeyException `KeyException(message as String = "Key not found"):` | Creates a key lookup exception.

Inherited Methods
method Inherited Methods from UncheckedException: toString
method Inherited Methods from Exception: toString
method Inherited Methods from Object: deepCopy, fromJson, toDict, toJson, toString, toXml