processUnhandledException

Platform and version requirements: Native (1.6)
@ExperimentalStdlibApi fun processUnhandledException(
    throwable: Throwable)

Performs the default processing of unhandled exception.

If user-defined hook set by setUnhandledExceptionHook is present, calls it and returns. If the hook is not present, calls terminateWithUnhandledException with throwable. If the hook fails with exception, calls terminateWithUnhandledException with exception from the hook.

© 2010–2021 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.native/process-unhandled-exception.html