Get error code
Get error code of the last operation.
This function has no parameters.
Returns the error code identified by one of the TRADER_ERR_* constants.