What is the suggested way to show exception messages on UI which were produced in Business Layer?

Posted by burak ozdogan on Stack Overflow See other posts from Stack Overflow or by burak ozdogan
Published on 2010-05-04T14:46:36Z Indexed on 2010/05/04 14:48 UTC
Read the original article Hit count: 256

Hi,

Is there a pattern OR 'a best practice' on creating user's friendly messages in the presentation layer by using exceptions which were thrown from the Business Layer?

Actually in many cases I prefer to throw Application Exceptions and this is forcing me to catch them on UI (aspx.cs pages). And if the process is complex which may produce many different types of exceptions I have to have many catch blocks to produce specific error messages.

Is there a better way coming to your mind? A pattern maybe for similar cases?

thanks

© Stack Overflow or respective owner

Related posts about exception-handling

Related posts about error-handling