Win a copy of Java 9 Modularity: Patterns and Practices for Developing Maintainable Applications this week in the Java 9 forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Exceptions Handling  RSS feed

 
Víctor García
Greenhorn
Posts: 18
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

Should we comment about exception handling in part 2 of SCEA? What do you think?

I have little experience in exception handling, and i have doubts about that. If we have JSF->SessionFacade->Services->JPA, which is the best option? I think that if we don't have BusinessDelegate we have no option to handle business exceptions and if we don't have DAOs we have no option to handle SQL exceptions? And, in JSF, which do you think that is the better method to exceptions handling?

Thnaks in advance and sorry for my english.
 
Dmitri Ericsson
Ranch Hand
Posts: 109
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I think here you should write that a human-readable error message should be displayed, data should remain consistent, technical details should not be shown to the end-user. Too technical details are not needed.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!