Select the Caught Exception option to suspend execution when an exception of the same type as the breakpoint is thrown in a caught location.
This option can be changed with the
Breakpoint Properties..., or by
right-clicking an exception breakpoint.
Creating Exception Breakpoint Filters
Launching a Java program
Running and debugging
Add Java exception breakpoint