aboutsummaryrefslogtreecommitdiff
path: root/ExitException.hpp
blob: ca21bd1bb834c735c4f5d4331edbbfb6beb3e985 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
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