Add support for some well known exceptions.