IApplicationExtension.onExitException

Function executed if (and only if) an ExitException was thrown.

It can change the ExitException to change how the program will exit.

interface IApplicationExtension
onExitException

Parameters

app IApplication

the application instance that will run

args istring[]

command line arguments used to invoke the application

exception ExitException

current exit exception that will be used to exit

Return Value

new exit exception to use when the program exits (can be modified by other extension though)

Meta