If you go to the Debug menu and select Exceptions... (or press Ctrl+Alt+E ), you will get a dialog:

You need to click the Add... button, enter your own type name and make sure that the checkbox for your new exception type is checked.
sblom source share