You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@iotdb.apache.org by "Jialin Qiao (Jira)" <ji...@apache.org> on 2019/09/17 06:51:00 UTC
[jira] [Created] (IOTDB-218) Using exception instead of returning
true/false
Jialin Qiao created IOTDB-218:
---------------------------------
Summary: Using exception instead of returning true/false
Key: IOTDB-218
URL: https://issues.apache.org/jira/browse/IOTDB-218
Project: Apache IoTDB
Issue Type: Improvement
Reporter: Jialin Qiao
"boolean insert(InsertPlan insertPlan) throws ProcessorException;"
For example, this is the insert interface in IQueryProcessExecutor, we should use exception instead of returning true or false because exception could return a message to the client. Otherwise, the client only know an "Execute statement error", which is not friendly at all.
--
This message was sent by Atlassian Jira
(v8.3.2#803003)