Select the Uncaught Exception 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 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