Throwable

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

The base class for all errors and exceptions. Only instances of this class can be thrown or caught.

Since Kotlin

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

The base class for all errors and exceptions. Only instances of this class can be thrown or caught.

Since Kotlin

1.1

Parameters

message

the detail message string.

cause

the cause of this throwable.

message

the detail message string.

cause

the cause of this throwable.

Constructors

Link copied to clipboard
fun Throwable(message: String?)
fun Throwable(message: String?)
Link copied to clipboard
fun Throwable(cause: Throwable?)
fun Throwable(cause: Throwable?)
Link copied to clipboard
fun Throwable()
fun Throwable()
Link copied to clipboard
fun Throwable(message: String?, cause: Throwable?)
fun Throwable(message: String?, cause: Throwable?)

Properties

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

Extensions

Link copied to clipboard

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

Since Kotlin 1.0

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

Since Kotlin 1.0
Link copied to clipboard

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

Since Kotlin 1.0