C Grid API Error Codes

The C Grid API returns three types of error codes:

If you provide a valid Error Function callback when you initialize the Grid API, this callback is called for all EGAPI errors if a valid hGrid is passed. The Error Function can in turn stop the default error handling user interface provided within EGAPI by returning zero (0). If a non-zero value is returned from the Error Function, or no Error Function is provided, EGAPI uses the system specific user interface to display the error message.

The following table describes the error status constants returned when a Grid API call fails.

Error CodeValue
ESSG_ERR_INITREQUIRED1100001
ESSG_ERR_CONNECTREQUIRED1100002
ESSG_ERR_INVALIDHANDLE1100003
ESSG_ERR_INVALIDGRID1100004
ESSG_ERR_CANNOTINIT1100005
ESSG_ERR_CANNOTCONNECT1100006
ESSG_ERR_CANNOTCREATEGRID1100007
ESSG_ERR_INVALIDVERSION1100008
ESSG_ERR_CANNOTGETAPIINST1100009
ESSG_ERR_CANNOTGETAPICTX1100010
ESSG_ERR_INVALIDOPTION1100011
ESSG_ERR_INVALIDRANGE1100012
ESSG_ERR_INVALIDDATA1100013
ESSG_ERR_INVALIDROWORCOLMAX1100014
ESSG_ERR_NULLARGUMENT1100015
ESSG_ERR_CELLSREQUIRED1100016
ESSG_ERR_RANGEREQUIRED1100017
ESSG_ERR_INVALIDACTION1100018
ESSG_ERR_INVALIDGRIDOPTION1100019
ESSG_ERR_INVALIDFUNCTION1100020
ESSG_ERR_MEMORY1100021
ESSG_ERR_INVALIDROW1100022
ESSG_ERR_INVALIDCOLUMN1100023
ESSG_ERR_INVALIDPARM1100024
ESSG_ERR_INVALIDCSLVERSION1100025
ESSG_ERR_RANGEOVERLAP1100026
ESSG_ERR_OPERATIONFAILED1100027
ESSG_ERR_CANNOTSETOPTION1100028
ESSG_ERR_INVALIDOPTIONVALUE1100029
ESSG_ERR_EMPTYARGUMENT1100030
ESSG_ERR_INVALIDLROHANDLE1100031
ESSG_ERR_NOLROSAVAILABLE1100032
ESSG_ERR_INVALIDLROTYPE1100033
ESSG_ERR_GCINITFAIL1100034
ESSG_ERR_GCSETLOCALEFAIL1100035