UncaughtExceptionHandler

Default uncaught exception handler; logs the error to the root logger, along with a stacktrace and message from the exception, if any.

Application-level code can override this default handler by using the @Replaces annotation from Micronaut, as demonstrated below:

@Singleton @Replaces(UncaughtExceptionHandler::class)
class MyHandler: Thread.UncaughtExceptionHandler {
// ...
}

Constructors

Functions

Link copied to clipboard
open override fun uncaughtException(thread: Thread, err: Throwable)