When to Provide Your Own Exception/Termination Handler

For Fortran Console, Fortran QuickWin, and Fortran Standard Graphics applications, the default exception and termination handlers are probably sufficient to meet most needs. As described in Structure Of a Visual Fortran Application, Fortran DLL and Fortran Windows applications do not have default handlers.

Whenever the default exception and termination handlers do not meet all your needs, consider providing your own handler. This is really a question you need to answer for each specific application. Some examples:

The list of possibilities is endless and only the application developer can anticipate his or her particular needs.

See How to Provide Your Own Exception/Termination Handler for some ideas on how to deal with unexpected events when implementing a handler for your application.