Hide navigation sidebar
Hide table of contents sidebar
Back to top
Toggle table of contents sidebar

# 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));

Help and Feedback

Press `/` or click to search this documentation | Gurobi website | Gurobi community forum
Go to other Gurobi documentation | Gurobi download | Contact support