The rest of the original implementation, mostly a Swing dialog, designed to provide a simple and user friendly way to inform any unexpected exception has been packaged as a standard Griffon plugin called Airbag. I have just released the 0.1 version of it which includes pretty much a direct port of the code from my other project.
To Install
griffon install-plugin airbag
How to use?
Once installed Airbag dialog can be easily initiated by using the following event handler in your main controller.
void onUncaughtExceptionThrown(ex) {
doLater {
try {
def errorDialog = new AirBagErrorDialog(view.mainWindow,
"Uncaught Exception Occured",
ex)
errorDialog.show()
} catch (Exception e) {
e.printStackTrace(System.err)
}
}
}
Screen Shot
No comments:
Post a Comment