Exception breakpoint with excluded sub-class

Answered

Hello guys.
Is there any way to create Exception breakpoint which will catch exceptions by class, but exclude one sub-class?
For example I want to create breakpoint to stop when SQLException is thrown, but do not stop when SQLFeatureNotSupportedException is thrown.

0
1 comment

use condition:

!(this instanceof SQLFeatureNotSupportedException)

0

Please sign in to leave a comment.