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.2
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
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.3

Parameters

message

the detail message string.

cause

the cause of this throwable.

message

the detail message string.

cause

the cause of this throwable.

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?)
fun Throwable(message: String?)
fun Throwable(message: String?)
Link copied to clipboard
fun Throwable(cause: Throwable?)
fun Throwable(cause: Throwable?)
fun Throwable(cause: Throwable?)
fun Throwable(cause: Throwable?)
Link copied to clipboard
fun Throwable()
fun Throwable()
fun Throwable()
fun Throwable()
Link copied to clipboard
fun Throwable(message: String?, cause: Throwable?)
fun Throwable(message: String?, cause: Throwable?)
fun Throwable(message: String?, cause: Throwable?)
fun Throwable(message: String?, cause: Throwable?)

Functions

Link copied to clipboard

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

Since Kotlin 1.3
Link copied to clipboard

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

Since Kotlin 1.3
Link copied to clipboard
open override fun toString(): String

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.

Since Kotlin 1.3

Properties

Link copied to clipboard
open val cause: Throwable?
Since Kotlin 1.2
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.2
open val message: String?
Since Kotlin 1.0
open val message: String?
Since Kotlin 1.1
open val message: String?
Since Kotlin 1.3

Inheritors

Link copied to clipboard
Link copied to clipboard

Extensions

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

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