BlockIPPlatform
 All Classes Files Functions Variables
ExceptionBlockIP.h
Go to the documentation of this file.
1 
6 #ifndef EXCEPTIONBLOCKIP_H
7 #define EXCEPTIONBLOCKIP_H
8 
9 #include <exception>
10 #include <string>
11 
12 using namespace std;
13 
14 enum TYPE_ERROR {OUT_OF_MEMORY, NOIJA, NOIJA_GENERAL, CHOLMOD_NOT_IMPLEMENTED, SEMIDEFINITE, ORDMMD_PROBLEMS, SFINIT_PROBLEMS, SYMFCT_PROBLEMS,
15  GET_ILNZ_IFILLIN_GENERAL_PROBLEMS, GET_ILNZ_IFILLIN_NETWORK_PROBLEMS, BLKFCT_PROBLEMS, COLUMN_OUT_OF_RANGE, ROW_OUT_OF_RANGE,
16  HESS_NOT_ZERO, FOBJ_NULL, ZERO_BLOCKS, N_NULL, L_COLUMNS, L_ROWS, SAME_N_CONS, SAME_NL_FREE_VAR,
17  SAME_NL_LB_INF_VAR, NONLINMPS, OPEN_FILE_WRITE, OPEN_FILE_READ, BLOCKIP_WRONG_FORMAT, MPS_WRONG_FORMAT, MPS_CONSTANT_DEF, MPS_CONTANT_CONS,
18  MPS_SLACK_WITH_NO_LIN, MPS_BLOCK, MPS_CONS, MPS_VAR, MPS_VAR_REP, MPS_LIN_COST_REP, MPS_CONS_VAR_REP, MPS_CONS_VAR_BLOCK, MPS_LINK_WITHOUT_SLACK,
19  MPS_SLACK_ALREADY_DEFINED, MPS_SLACK_COEF, MPS_FREE_CONS_BOUNDS, MPS_RHS_DEF, MPS_RHS_NOT_DEF, MPS_RANGES_DEF, MPS_BOUNDS_DEF,
20  MPS_CONSTANT_BOUNDS, MPS_QUADOBJ, MPS_QUADOBJ_DEF,NOT_FOR_THIS_MATRIX_TYPE,
21  QCOST_NOT_SEMIDEF,TYPE_STARTPOINT_TODO, MEHROTRA_NOT_IMPLEMENTED, HYBRIDPCG_NOT_IMPLEMENTED,
22  INFINITY_RHS};
23 
25 class ExceptionBlockIP : public exception {
26  public:
27  TYPE_ERROR error;
28  string file;
29  int line;
30  string message;
31  ExceptionBlockIP(TYPE_ERROR error) throw();
32  ExceptionBlockIP(TYPE_ERROR error, string file) throw();
33  ExceptionBlockIP(TYPE_ERROR error, string file, int line) throw();
34  ~ExceptionBlockIP() throw();
35  const char* what() const throw();
36  private:
37  void setMessage();
38 };
39 
40 #endif //EXCEPTIONBLOCKIP_H