Select the Add Exception Breakpoint command [ ] to add a Java exception breakpoint.
In the resulting dialog:
In the Choose an Exception field, type a string that is contained in the name of the exception you want to add. You can use wildcards as needed
("* " for any string and "? " for any character).
In the Matching types list , select the exception you want to add.
Select Caught and Uncaught as needed to indicate on which exception type you want to suspend the program.