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)
Inherited Properties
propertyInherited Properties from Exception: message
propertyInherited 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
methodInherited Methods from UncheckedException: toString
methodInherited Methods from Exception: toString
methodInherited Methods from Object: deepCopy, fromJson, toDict, toJson, toString, toXml