public class KeyException extends UncheckedException
Exception raised when a key lookup fails in a map-like collection.
import klyn.collections
values = SortedMap<String, Int>()
try:
values["missing"]
catch exc as KeyException:
println(exc.message)| Modifier and Type | Member | Description |
|---|---|---|
| public | KeyExceptionKeyException(message as String = "Key not found") |
Creates a key lookup exception. |