Java Exceptions Dialog Box

   Tasks

The Java Exceptions dialog box defines exception handling settings for Java exceptions that occur during debugging sessions.

Options

Exceptions List

This is a tree view list that displays the entire Java exceptions hierarchy. Each exception listed in the tree displays an icon that shows the current breakpoint setting. A red icon indicates that the exception will cause Visual J++ to break on the line of code that caused the exception. A large gray icon signifies that the exception will not cause a break into the debugger if there’s an exception handler; otherwise, a break will occur. A small gray icon signifies that the exception will use its superclass' current setting. The default setting for all exceptions is to not break into the debugger when an exception occurs and a handler is present.

Exception Settings

This group of option buttons is used to set the break status for the currently selected exception from the Exceptions List. The options are:

Break into debugger   This displays a message box when the selected exception type occurs. This message box provides the ability to view the code (if available) that caused the exception. A large red icon is displayed when this setting is chosen.

Continue and break only if the exception is not handled   If the selected exception occurs, Visual J++ stops only if the exception is not handled by exception handling code. This is the default setting for all exceptions. A large gray icon is displayed when this setting is chosen.

Use setting from superclass   Uses the break setting for the currently selected exception's superclass. Depending on the exception's superclass setting, a small red or gray icon is displayed when this setting is chosen.

Find

Displays the Find dialog box that allows you to enter a string of text to search for a specific exception within the Exceptions List.

Find Next

Used with the Find button, this button displays the next exception that contains the text entered in the Find dialog box.

Clear All

Clears all exception handling settings that have been made and returns them to the default settings.