[
https://issues.apache.org/jira/browse/OFBIZ-7539?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15647058#comment-15647058 ]
Jacques Le Roux commented on OFBIZ-7539:
----------------------------------------
At revision: 1768636, thanks to the way it was written, I have used multiple catch blocks wherever it's possible, with GenericEntityException and GenericServiceException by using a regexp S/R in Eclipse and a little var exception name change.
Of course we should try to use it when it's possible
https://docs.oracle.com/javase/7/docs/technotes/guides/language/catch-multiple.html#multiple> Catch GenericEntityException and GenericServiceException and other instead of Exception in Java classes
> -------------------------------------------------------------------------------------------------------
>
> Key: OFBIZ-7539
> URL:
https://issues.apache.org/jira/browse/OFBIZ-7539> Project: OFBiz
> Issue Type: Improvement
> Components: ALL COMPONENTS
> Affects Versions: Upcoming Branch
> Reporter: Divesh Dutta
> Assignee: Arun Patidar
> Fix For: Upcoming Branch
>
>
> There are many places in Java code when services are called or entity operations are performed, but GenericEntityException and GenericServiceException and other exceptions are not handled, instead higher level Exception is handled. Its best practice to handle detailed level exceptions.
> This is parent ticket, i will create child tickets for each component.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)