Check the names of all caught exceptions