check the original exception class instead