public class KeyException extends UncheckedException:
Exception raised when a key lookup fails in a map-like collection.
@param message Description of the missing key.
import klyn.collections values = Map<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. |