You are viewing a plain text version of this content. The canonical link for it is here.
Posted to reviews@iotdb.apache.org by GitBox <gi...@apache.org> on 2019/08/26 10:45:04 UTC
[GitHub] [incubator-iotdb] samperson1997 opened a new pull request #350:
[IOTDB-161] Add ErrorCode of different response errors
samperson1997 opened a new pull request #350: [IOTDB-161] Add ErrorCode of different response errors
URL: https://github.com/apache/incubator-iotdb/pull/350
There is already an optional attribute `errorCode` in struct `TS_Status` (but not used before), and it could be used for representing different response errors.
For example, `TIME_SERIES_NOT_EXIST_ERROR` equals 301 by defined. When referring to this error, instead of using `e.getErrorMessage().contains('exists')`, we can just use `e.getErrorCode() == 301`.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services