TypeError
classin packageklyn
public class TypeError extends Exception:
└ TypeError

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.

Example
try:
Application.compile("value as Int = \"text\"")
catch error as TypeError:
println(error.message)
Inherited Properties
propertyInherited Properties from Exception: message
propertyInherited Properties from Object: type
Constructors
Modifier and Type Member Description
public TypeError
TypeError(message as String = "Type error"):
Creates a type error.
Inherited Methods
methodInherited Methods from Exception: toString
methodInherited Methods from Object: deepCopy, fromJson, hash, toDict, toJson, toString, toXml