Fix broken exception class resolution