-
Notifications
You must be signed in to change notification settings - Fork 269
Error Handler
Edvin Syse edited this page Jul 21, 2016
·
4 revisions
Wiki ▸ Documentation ▸ 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!