TypeCastException

JVM
1.0
open class TypeCastException : ClassCastException
(source)

Constructors

JVM
1.0

<init>

TypeCastException()
TypeCastException(message: String?)

Extension Properties

JVM
1.0

stackTrace

Returns an array of stack trace elements representing the stack trace pertaining to this throwable.

val Throwable.stackTrace: Array<StackTraceElement>

Extension Functions

Native
1.3

getStackTraceAddresses

Returns a list of stack trace addresses representing the stack trace pertaining to this throwable.

fun Throwable.getStackTraceAddresses(): List<Long>
JVM
1.0

printStackTrace

Prints the detailed description of this throwable to the specified writer.

fun Throwable.printStackTrace(writer: PrintWriter)

Prints the detailed description of this throwable to the specified stream.

fun Throwable.printStackTrace(stream: PrintStream)