Don't translate non-database exceptions.
#29692

fimmtiu wants to merge fimmtiu:avoid-translating-non-database-exceptions into rails:master

We do not currently have an analysis of these two commits