Get error code
Get error code of the last operation.
Returns the error code identified by one of the TRADER_ERR_* constants.