S
steve bull
I am trying to make my code conform to FXCop standards. The problem I have is when, for example, I try to catch errors generated by
creating an instance of XmlTextWtriter FxCop insists that I only catch named exceptions. I can add clauses for all currently known
exceptions, ArgumentNullException, ArgumentException, ArgumentOutOfRangeException and InvalidOperationException - but if a new error
is generated in a future version my code will never know about it.
Is there a recommended way of dealing with exceptions like this? A final catch clause will not give me any exception information.
Thanks,
Steve
creating an instance of XmlTextWtriter FxCop insists that I only catch named exceptions. I can add clauses for all currently known
exceptions, ArgumentNullException, ArgumentException, ArgumentOutOfRangeException and InvalidOperationException - but if a new error
is generated in a future version my code will never know about it.
Is there a recommended way of dealing with exceptions like this? A final catch clause will not give me any exception information.
Thanks,
Steve