Exception

expect open class Exception(val message: String?, val cause: Throwable?) : Throwable(source)

Since Kotlin

1.0

Inheritors

actual open class Exception(val message: String?, val cause: Throwable?) : Throwable(source)

Since Kotlin

1.1

Inheritors

Since Kotlin

1.1
actual open class Exception(val message: String?, val cause: Throwable?) : Throwable(source)

Since Kotlin

1.3

Inheritors

Constructors

Link copied to clipboard
expect constructor()
expect constructor(message: String?)
expect constructor(message: String?, cause: Throwable?)
expect constructor(cause: Throwable?)
actual constructor()
actual constructor(message: String?)
actual constructor(message: String?, cause: Throwable?)
actual constructor(cause: Throwable?)
actual constructor()
actual constructor(message: String?)
actual constructor(message: String?, cause: Throwable?)
actual constructor(cause: Throwable?)

Properties

Link copied to clipboard
open val cause: Throwable?
Since Kotlin 1.0
open val cause: Throwable?
Since Kotlin 1.1
open val cause: Throwable?
Since Kotlin 1.3
Link copied to clipboard
open val message: String?
Since Kotlin 1.0
open val message: String?
Since Kotlin 1.1
open val message: String?
Since Kotlin 1.3
Link copied to clipboard

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

Since Kotlin 1.0

Functions

Link copied to clipboard
actual fun Throwable.addSuppressed(exception: Throwable)

When supported by the platform, adds the specified exception to the list of exceptions that were suppressed in order to deliver this exception.

Since Kotlin 1.1
Link copied to clipboard

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

Since Kotlin 1.3
Link copied to clipboard
actual inline fun Throwable.printStackTrace()

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

Since Kotlin 1.0

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

Since Kotlin 1.0

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

Since Kotlin 1.0