Thursday, April 28, 2011

Enterprise Library 4.1 Exception policy

Hello,

I am using Enterprise Library 4.1 and want to implement Exception handling and logging. I am able to setup one policy that handles general Exceptions of the System.Exception type. I call this policy 'Data Access Policy'.

In a general application development rule, how many policies should I create? What are the best practices for catching SqlExceptions? Should a separate policy be defined?

What I am looking for is some suggestions from folks who develop applications using Enterprise Library and how they setup the policies for exception handling and some examples would help.

Thanks

From stackoverflow
  • I am trying to do the same thing in 4.1 to catch generic errors. Can you share any code that you used to create your generic policy. I want true errors to bubble down so I can see the root cause. Any help would be appreciated.

    Picflight : Mike, I put this on side burner for now, I will post some of samples when I get around to it.

0 comments:

Post a Comment

Note: Only a member of this blog may post a comment.