addSuppressed

expect fun Throwable.addSuppressed(exception: Throwable)(source)

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.4
actual fun Throwable.addSuppressed(exception: Throwable)(source)

Adds the specified exception to the list of exceptions that were suppressed in order to deliver this exception.

Since Kotlin

1.4
actual fun Throwable.addSuppressed(exception: Throwable)(source)

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
actual fun Throwable.addSuppressed(exception: Throwable)(source)

Adds the specified exception to the list of exceptions that were suppressed in order to deliver this exception.

Does nothing if this Throwable is frozen.

Since Kotlin

1.4