Generalize to handle all the CouchError exceptions plus the CouchConnectionError exception.