What is Airbag Plugin?

Airbag plugin provides a simple and user friendly exception dialog component that can be used in combination with Griffon UncaughtExceptionThrown event to report any unhandled exception automatically.

Install

griffon install-plugin airbag

How to use?

Thanks to the UncaughtExceptionThrown event addition introduced as part of Griffon 0.9.2 release, 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

-