Select the Uncaught locations option to suspend execution when an exception of the same type as the breakpoint is thrown in an uncaught location.
This option can be changed in the Breakpoints View detail pane, 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