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

# GRBException

GRBException

  Gurobi exception object. This is a sub-class of the .NET `Exception` class. A number of useful properties, including `Message()` and `StackTrace()`, are inherited from the parent class. For a list of parent class methods, visit this site.

  GRBException GRBException(int errcode)

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

    Parameters:

      errcode – Error code for exception.

    Returns:

      An exception object.

  GRBException GRBException(string errmsg)

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

    Parameters:

      errmsg – Error message for exception.

    Returns:

      An exception object.

  GRBException GRBException(string errmsg, int errcode)

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

    Parameters:

      - errmsg – Error message for exception.

      - errcode – Error code for exception.

    Returns:

      An exception object.

  int ErrorCode

    (Property) The error code associated with a Gurobi exception.

Help and Feedback

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