ClassCastException
class in package klyn

    public class ClassCastException extends UncheckedException:

Object
└ Exception
└ UncheckedException
└ ClassCastException

Exception raised when an explicit cast cannot be performed at runtime.

@param message Description of the failed cast.

    value as Object = "abc"
    try:
    number = value as Int
    catch exc as ClassCastException:
    println(exc.message)

Properties inherited from Exception: message
Properties inherited from Object: type
Constructors

Modifier and Type | Member | Description
--- | --- | ---
public | ClassCastException `ClassCastException(message as String = "Invalid cast"):` | Creates a class cast exception.

Methods inherited from UncheckedException: toString
Methods inherited from Exception: toString
Methods inherited from Object: fromJson, toDict, toJson, toString, toXml