Concepts
Features
Reference
Gurobi exception object. Exceptions can be thrown by nearly every methodin the Gurobi C++ API.GRBException inherits fromstd::runtime_errorwhich allows you to catch Gurobi exceptions not only via:
catch(constGRBException&e){cout<<e.getMessage()<<endl;}
but also as standard C++ exceptions, such as:
catch(conststd::runtime_error&e){cout<<e.what()<<endl;}
or:
catch(conststd::exception&e){cout<<e.what()<<endl;}
Exception constructor that creates a Gurobi exception with the given errorcode.
errcode – (optional) Error code for exception.
An exception object.
Exception constructor that creates a Gurobi exception with the givenmessage string and error code.
errmsg – Error message for exception.
errcode – (optional) Error code for exception.
An exception object.
Retrieve the error code associated with a Gurobi exception.
The error code associated with the exception.
Retrieve the error message associated with a Gurobi exception.
The error message associated with the exception.
Help and Feedback