addSuppressed
fun Throwable.addSuppressed(exception: Throwable)
(Common source) (JVM source) (JS source) (Native source)
For Common, JVM
When supported by the platform, adds the specified exception to the list of exceptions that were suppressed in order to deliver this exception.
For JS
Adds the specified exception to the list of exceptions that were suppressed in order to deliver this exception.
For Native
Adds the specified exception to the list of exceptions that were suppressed in order to deliver this exception.
Legacy MM: does nothing if this Throwable is frozen.