Error Handling#

char *GRBgeterrormsg(GRBenv *env)#

Retrieve the error message associated with the most recent error that occurred in an environment.

Return value:

A string containing the error message.

Arguments:
  • env – The environment in which the error occurred.

Example:
error = GRBgetintattr(model, "DOES_NOT_EXIST", &attr);
if (error)
  printf("%s\n", GRBgeterrormsg(env));