gramods
|
Standard exception for exiting the application with a specified exit code. More...
#include <ExitException.hh>
Public Member Functions | |
ExitException (int exit_code=0) | |
Creates an exit exception with the specified exit code, or an exit code of 0 (zero) if not specified. More... | |
Public Attributes | |
const int | exit_code |
The exit code of the exit exception. More... | |
Standard exception for exiting the application with a specified exit code.
Top level execution of gramods objects should catch this exception and exit the application with the given exit code.
Exiting the application is an exception because normally the application should be running. It is not always practical to handle exiting as a normal, non-exceptional behavior.
|
inline |
Creates an exit exception with the specified exit code, or an exit code of 0 (zero) if not specified.
const int gramods::gmCore::ExitException::exit_code |
The exit code of the exit exception.