gramods
Loading...
Searching...
No Matches
ExitException.hh
1
2#ifndef GRAMODS_CORE_EXITEXCEPTION
3#define GRAMODS_CORE_EXITEXCEPTION
4
5#include <gmCore/config.hh>
6
7#include <exception>
8#include <string>
9
10BEGIN_NAMESPACE_GMCORE;
11
22
27 ExitException(int exit_code = 0)
28 : exit_code(exit_code) {}
29
33 const int exit_code;
34};
35
36END_NAMESPACE_GMCORE;
37
38#endif
Standard exception for exiting the application with a specified exit code.
Definition ExitException.hh:21
const int exit_code
The exit code of the exit exception.
Definition ExitException.hh:33
ExitException(int exit_code=0)
Creates an exit exception with the specified exit code, or an exit code of 0 (zero) if not specified.
Definition ExitException.hh:27