[
https://issues.apache.org/jira/browse/IOTDB-218?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Jialin Qiao closed IOTDB-218.
-----------------------------
Resolution: Fixed
> 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
> Priority: Major
> Labels: 0.8.0, pull-request-available
> Time Spent: 20m
> Remaining Estimate: 0h
>
> "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.4#803005)