Well, I prefer to define new Exception classes over ugly error codes, which 
better utilize OOP. 

Tian Jiang

> 在 2019年8月13日,下午4:00,Xiangdong Huang <[email protected]> 写道:
> 
> Hi,
> 
> When using IoTDB-JDBC to operate data, I realize that it is not convenient
> without  error codes ....
> 
> The typical application is register a new time series automatically if the
> received data belongs to a not existed time series.. Now, I have to check
> the error message to judge whether the keyword "exist" exists...
> 
> I list 4 useful error codes according to my experience of using IoTDB, see
> https://issues.apache.org/jira/browse/IOTDB-161
> 
> It is an easy task comparing to other issues. Knowing how to use Thrift
> will help to finish the feature.
> 
> Best,
> -----------------------------------
> Xiangdong Huang
> School of Software, Tsinghua University
> 
> 黄向东
> 清华大学 软件学院


Reply via email to