GRBException#

GRBException#

Gurobi exception object. This is a sub-class of the Java Exception class. A number of useful methods, including getMessage() and printStackTrace(), are inherited from the parent class. For a list of parent class methods in Java, visit this site.

GRBException GRBException(int errcode)#

Exception constructor that creates a Gurobi exception with the given error code.

Arguments:

errcode – Error code for exception.

Return value:

An exception object.

GRBException GRBException(String errmsg)#

Exception constructor that creates a Gurobi exception with the given message string.

Arguments:

errmsg – Error message for exception.

Return value:

An exception object.

GRBException GRBException(String errmsg, int errcode)#

Exception constructor that creates a Gurobi exception with the given message string and error code.

Arguments:
  • errmsg – Error message for exception.

  • errcode – Error code for exception.

Return value:

An exception object.

int getErrorCode()#

Retrieve the error code associated with a Gurobi exception.

Return value:

The error code associated with the exception.