Skip to content
This repository has been archived by the owner on Sep 28, 2024. It is now read-only.

Error Handler

Edvin Syse edited this page Jul 21, 2016 · 4 revisions

WikiDocumentationError Handler

Error Handler

By default, Tornado FX installs a custom UncaughtExceptionHandler called DefaultErrorHandler.

If an error is thrown, this error handler will pop up a dialog describing the error along with a stack trace. To configure a custom error handler, implement Thread.UncaughtExceptionHandler and install it:

class MyApp : App() {

    init {
        Thread.setDefaultUncaughtExceptionHandler(MyCustomErrorHandler())
    }
}

Next: Create your first Tornado FX application. Report any issues. Have fun!

Clone this wiki locally