This doesn't seem like a good idea.  I'd just look at the SQLSTATE, as it's never localized.