This documentation is archived and is not being maintained.

Adding New Exceptions

By default, the Exceptions dialog box lists the most common exceptions. You can add other exceptions to a category. These exceptions are stored with the project and will be available the next time you open and run the project.

To add a new exception to the Exceptions list

  1. In the Exceptions list of the Exceptions dialog box, choose a top-level category (such as Common Language Runtime Exceptions). This is the category you will add the exception to.

    The Add button becomes enabled.

  2. Click the Add button.

    The New Exception dialog box appears.

  3. Type the exception name in the Name box. Make sure you spell it correctly. The debugger does not check to see if your program defines an exception with that name. If you type "Noo" instead of "Moo", the debugger will not see the exception Moo. Exception names are not case sensitive, so if you cannot add "Moo" if you already added "moo". For Win32 exceptions, type the exception number.
  4. Click OK.

    The new exception appears, highlighted, in the Exceptions list. If you accidentally typed the name of an exception that is already there, the existing exception appears highlighted. (Remember that exception names are not case sensitive, so "Moo" and "moo" are the same.

See Also

Handling Exceptions | Exceptions Dialog Box