diff options
Diffstat (limited to 'ExitException.hpp')
| -rwxr-xr-x | ExitException.hpp | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/ExitException.hpp b/ExitException.hpp new file mode 100755 index 0000000..ca21bd1 --- /dev/null +++ b/ExitException.hpp @@ -0,0 +1,19 @@ +#ifndef EXIT_EXCEPTION_HPP +#define EXIT_EXCEPTION_HPP 1 + +#include <string> +#include <stdexcept> + +using std::runtime_error; +using std::string; + +class CExitException : public runtime_error +{ +private: + int mReturnValue; +public: + CExitException(const string & whatArg, int returnValue); + int getReturnValue(); +}; + +#endif |
