diff options
| author | Ján Sučan <sucanjan@fit.cvut.cz> | 2017-05-10 15:13:29 +0200 |
|---|---|---|
| committer | Ján Sučan <sucanjan@fit.cvut.cz> | 2017-05-10 15:13:29 +0200 |
| commit | 02e24f0f533fe904c3a5275c4060c10c38d7c17a (patch) | |
| tree | 19d05c60e3d6a6782c4712de960a8f6705054063 /ExitException.hpp | |
Uvodny commit, subory su rovnake ako na CD prilozenom k vytlacenemu texu bakalarskej prace, naviac je pridany len subor LICENCIA
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 |
