3

From what I've learned you should always implement the ApplicationException class for your custom exceptions in .NET. I recently started developing a Windows Phone 7, but I could not find this class. Is there a different class I should use now?

1 Answer 1

7

Use the Exception class instead. From MSDN:

If you are designing an application that needs to create its own exceptions, you are advised to derive custom exceptions from the Exception class. It was originally thought that custom exceptions should derive from the ApplicationException class; however in practice this has not been found to add significant value. For more information, see Best Practices for Handling Exceptions.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.