Bug#30929. Shorn Tolley pointed out that using equals() means you can't pass SQLException in and expect to get back extensions of SQLException. Switching to isAssignableFrom allows you to do this.