How and where do we write try catch block to handle Exception

Posted by Arpita on Stack Overflow See other posts from Stack Overflow or by Arpita
Published on 2010-03-12T06:01:40Z Indexed on 2010/03/12 6:07 UTC
Read the original article Hit count: 465

Filed under:
|

We are using C# language to develope a Windows application.

Our windows application consists of three layers (UI,Business and DataAccess layer). In Business Layer there are some public (business) methods through which UI communicates wilh Business layer classes. These public methods also have some private methods to implement the required functionality. There are some methods in DataAcess layer which are called from Business layer class.

In this situatuion where should i wrte try-catch? a) In Business Layer Public methods b) In Busyness Layer Private methods c) In DataAccess Layer methods d) In UI methods from where Business methods are called.

© Stack Overflow or respective owner

Related posts about exception-handling

Related posts about c#