processUnhandledException

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.

Since Kotlin

1.6