This allows differentiating specific and general exceptions in tests; a library-wide trap would have to trap AbstractException