addSuppressed

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

Platform and version requirements: JVM

When supported by the platform adds the specified exception to the list of exceptions that were suppressed in order to deliver this exception.