Error
Platform and version requirements: JS (1.1), Native (1.3)
open class Error : Throwable
Platform and version requirements: JVM (1.1)
typealias Error = Error
Constructors
Platform and version requirements: JS (1.0), Native (1.0)
<init>
<init>()
<init>(message: String?)
<init>(message: String?, cause: Throwable?)
<init>(cause: Throwable?)
Inherited Functions
Platform and version requirements: Native (1.3)
getStackTrace
Returns an array of stack trace strings representing the stack trace pertaining to this throwable.
fun getStackTrace(): Array<String>
Platform and version requirements: Native (1.3)
printStackTrace
Prints the detailed description of this throwable to the standard output.
fun printStackTrace()
Platform and version requirements: 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
Platform and version requirements: 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
Platform and version requirements: JS (1.1), Native (1.3)
open class AssertionError : Error
Platform and version requirements: JVM (1.1)
typealias AssertionError = AssertionError
Platform and version requirements: JVM (1.0), JS (1.0), Native (1.0)
NotImplementedError
An exception is thrown to indicate that a method body remains to be implemented.
class NotImplementedError : Error
Platform and version requirements: Native (1.3)
OutOfMemoryError
open class OutOfMemoryError : Error
© 2010–2021 JetBrains s.r.o. and Kotlin Programming Language contributors
Licensed under the Apache License, Version 2.0.
https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-error/index.html