Exception breakpoint with excluded sub-class

已回答

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

use condition:

!(this instanceof SQLFeatureNotSupportedException)

0

请先登录再写评论。