UncaughtExceptionHandler
@Singleton
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 {
// ...
}
Content copied to clipboard