BlockIPPlatform
 All Classes Files Functions Variables
ExceptionOsiSolver.h
Go to the documentation of this file.
1 
6 #ifndef EXCEPTION_OSI_SOLVER_H
7 #define EXCEPTION_OSI_SOLVER_H
8 
9 #ifndef EXPDLL
10 #ifdef WIN32
11 #ifdef OSI_INTERFACE_EXPORTS
12 #define EXPDLL __declspec(dllexport)
13 #else
14 #define EXPDLL __declspec(dllimport)
15 #endif //OSI_INTERFACE_EXPORTS
16 #else
17 #define EXPDLL
18 #endif //WIN32
19 #endif //EXPDLL
20 
21 #include <exception>
22 #include <string>
23 
24 using namespace std;
25 
27 class EXPDLL ExceptionOsiSolver : public exception {
28  public:
29  enum TYPE_ERROR {CPLEX_LICENSE_ERROR, XPRESS_LICENSE_ERROR, SOLVER_INTERNAL_ERROR, SOLVER_NOT_AVAILABLE, QUADRATIC};
30 
31  TYPE_ERROR error;
32  string file;
33  int line;
34  ExceptionOsiSolver(TYPE_ERROR error) throw();
35  ExceptionOsiSolver(TYPE_ERROR error, string file, int line) throw();
36  ~ExceptionOsiSolver() throw();
37  const char* what() const throw();
38 };
39 
40 #endif //EXCEPTION_OSI_SOLVER_H