Loading...
Searching...
No Matches
gamsexceptionexecution.h
1
26#ifndef GAMSEXCEPTIONEXECUTION_H
27#define GAMSEXCEPTIONEXECUTION_H
28
29#include "gamsexception.h"
30
31namespace gams {
32
33class GAMSWorkspace;
34
37{
38public:
43 GAMSExceptionExecution(const std::string& what, int exitCode, GAMSWorkspace* ws = nullptr);
44
49 GAMSExceptionExecution(const char* what, int exitCode, GAMSWorkspace* ws = nullptr);
50
52 int rc();
53
54private:
55 int mRc;
56};
57
58} // namespace gams
59
60#endif // GAMSEXCEPTIONEXECUTION_H
Exception class thrown for GAMS execution exceptions.
GAMSExceptionExecution(const std::string &what, int exitCode, GAMSWorkspace *ws=nullptr)
GAMSExceptionExecution(const char *what, int exitCode, GAMSWorkspace *ws=nullptr)
int rc()
Get the return code.
Exception class thrown for GAMS exceptions.
Definition: gamsexception.h:36
Definition: gams.h:91