Best practise - exception handling in service/dao/business layers
问题 What is the best practise to do exception handling when error is thrown in different layers. I have 4 layers of code - DAO , SERVICE , BUSINESS, PRESENTATION. I am trying to catch some run time exception in the dao layer and want it to display in the presentation layer with some message.Is the below approach a good one ? Here in the code snippets - DataException is my runtime exception class.Service and Business exception classes are my checked exception implementation classes. Code snippets