Cookie Settings

Try our new documentation site (beta).

Filter Content By
Version
Table of contents
Filter by Language
C API Details
C++ API Details
GRBModel +
Java API Details
GRBModel +
.NET API Details
GRBModel +
Python API Details
Model +
Attributes
Parameters
Parameter Descriptions +


GRBgeterrormsg

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 usage:

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