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.
Adds the specified exception to the list of exceptions that were suppressed in order to deliver this exception.
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.
© 2010–2020 JetBrains s.r.o. and Kotlin Programming Language contributors
Licensed under the Apache License, Version 2.0.
https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/add-suppressed.html