8.5.1. MDOException¶
-
class MDOException¶
Represent an error that occurred while running the MindOpt application.
Methods
Constructs an exception with an error code
Constructs an error with and error message and a code
Retrieve the error code
Retrieve the error message
-
MDOException(int errcode = 0)¶
Constructs an exception with an error code
- Parameters
int errcode=0 – error code
-
MDOException(std::string errmsg, int errcode = 0)¶
Constructs an error with and error message and a code
- Parameters
std::string errmsg – error message
int errcode=0 – error code
-
int getErrorCode()¶
Retrieve the error code
- Returns
The error code
-
const std::string getMessage()¶
Retrieve the error message.
- Returns
The error message.
-
MDOException(int errcode = 0)¶