public class TypeError extends Exception:
Exception thrown when an operation violates Klyn's static or runtime type contract.
A type error is distinct from a malformed source expression represented by SyntaxError.
try:
Application.compile("value as Int = \"text\"")
catch error as TypeError:
println(error.message)| Modifier and Type | Member | Description |
|---|---|---|
| public | TypeError | Creates a type error. |