Error

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

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 stack trace of this throwable to the standard output.

fun printStackTrace()
Native
1.3

toString

Returns a string representation of the object.

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

AssertionError

Common
JS
Native
1.0
open class AssertionError : Error
JVM
1.1
typealias AssertionError = AssertionError
Common
JVM
JS
Native
1.0

NotImplementedError

An exception is thrown to indicate that a method body remains to be implemented.

class NotImplementedError : Error
Native
1.3

OutOfMemoryError

open class OutOfMemoryError : Error