processUnhandledException

Native
1.6
@ExperimentalStdlibApi fun processUnhandledException(
    throwable: Throwable)

(source)

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.