GRBException#
-
class GRBException#
Gurobi exception object. Exceptions can be thrown by nearly every method in the Gurobi C++ API.
-
GRBException GRBException(int errcode = 0)#
Exception constructor that creates a Gurobi exception with the given error code.
- Parameters:
errcode – (optional) Error code for exception.
- Returns:
An exception object.
-
GRBException GRBException(string errmsg, int errcode = 0)#
Exception constructor that creates a Gurobi exception with the given message string and error code.
- Parameters:
errmsg – Error message for exception.
errcode – (optional) Error code for exception.
- Returns:
An exception object.
-
int getErrorCode()#
Retrieve the error code associated with a Gurobi exception.
- Returns:
The error code associated with the exception.
-
const string getMessage()#
Retrieve the error message associated with a Gurobi exception.
- Returns:
The error message associated with the exception.
-
GRBException GRBException(int errcode = 0)#