Hi,

Could you tell us what were the motivations to avoid returning exceptions
(SQL) for the methods "DBDatabase.executeSQL()"?

This imposes to check if the returns is different of "0" or not. In case of
equals to "0", ask for the getErrorMessager() to get the report and advise
the stack manually. While most of theses exceptions, are the result of an
unexpected and not acceptable state.

Often, in this specific case, most of developers will prefere throwing a new
exception instead of to propagate an "int" because this is not an expected
functional behavior.

Could you please advise ? What is the purpose of that?

Regards,
exxos.

Reply via email to