How to handle error or exception if it occurs
How can i manage the exeception in thebeerhouse, should i manage them on the BLL or presentation layer. For example, assume that admin can be able to update the category but category name must e unique i.e when i tried to update the category name it show exception System.Data.SqlClient.SqlException: Cannot insert duplicate key row in object
what i would like is to capture this and display user friendly message to user instead of the errorpage. How can i do it?
Thank you
|