Exception

Common
JS
Native
1.0
open class Exception : Throwable
JVM
1.1
typealias Exception = Exception

Constructors

Common
JS
Native
1.0

<init>

<init>()
<init>(message: String?)
<init>(message: String?, cause: Throwable?)
<init>(cause: Throwable?)

Inherited Functions

Native
1.3

getStackTrace

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

fun getStackTrace(): Array<String>
Native
1.3

printStackTrace

Prints the detailed description of this throwable to the standard output.

fun printStackTrace()
Native
1.3

toString

Returns the short description of this throwable consisting of the exception class name (fully qualified if possible) followed by the exception message if it is not null.

open fun toString(): String

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>

Inheritors

CharacterCodingException

The exception thrown when a character encoding or decoding error occurs.

Common
JS
Native
1.3
open class CharacterCodingException : Exception
JVM
1.4
typealias CharacterCodingException = CharacterCodingException
Native
1.3

ForeignException

class ForeignException : Exception
JVM
1.1

IllegalCallableAccessException

An exception that is thrown when call is invoked on a callable or get or set is invoked on a property and that callable is not accessible (in JVM terms) from the calling method.

class IllegalCallableAccessException : Exception
JVM
1.1

IllegalPropertyDelegateAccessException

An exception that is thrown when getDelegate is invoked on a KProperty object that was not made accessible with isAccessible.

class IllegalPropertyDelegateAccessException : Exception
JVM
1.1

NoSuchPropertyException

An exception that is thrown when the code tries to introspect a property of a class or a package and that class or the package no longer has that property.

class NoSuchPropertyException : Exception

RuntimeException

Common
JS
Native
1.0
open class RuntimeException : Exception
JVM
1.1
typealias RuntimeException = RuntimeException