So, we use the Enterprise Library 4.1 Exception Handling Unit to handle exceptions to deal with the registration / handling of our exceptions in a multi-project application. We have several custom exceptions and some exceptions are thrown whose classes are defined in the standard .NET Framework class libraries (e.g. ArgumentException, InvalidOperationException, ArgumentNullException, etc.).
Today, our teamβs leadership decided that he didnβt want us to use the latter, since the .NET infrastructure threw these types of exceptions and to facilitate filtering using application block policies, we should use only custom exceptions when the standard library exceptions are almost duplicated .NET class with custom versions, e.g. in CustomArgumentException, CustomInvalidOperationException, etc.
My question is: what's wrong with this approach? At that time I could not put my finger on her, but it was bad for me, and I could not shake my uneasy feelings about this. Am I worried about something that is really not that important? I think it's just like the tail wagging the dog here a little ...
Jason bunting
source share