KeyException
classin packageklyn
public class KeyException extends 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)
Properties inherited from Exception: message
Properties inherited from Object: type
Constructors
Modifier and Type Member Description
public KeyException
KeyException(message as String = "Key not found"):
Creates a key lookup exception.
Methods inherited from UncheckedException: toString
Methods inherited from Exception: toString
Methods inherited from Object: deepCopy, fromJson, toDict, toJson, toString, toXml