Functions: Error queries

In addition to the error log of the commands, the API provides access to the respectively last error that occurred within the API. The possible error IDs are defined in the coreapi/epldefs.h file.

eplSetLastError

EplHandle
eplSetLastError(long errId);

Writes the ID of the error that occurred last into the error log.

Return Description
EplHandle If successful, EPL_OK is returned, otherwise EPL_ERROR.
Input Type Description
errId long Error number to be set.

eplGetLastError

EplHandle
eplGetLastError();

Reads the error detected last from the error log.

Return Description
EplHandle If successful, EPL_OK is returned, otherwise EPL_ERROR.