DBConnection.ConnectionError exception (db_connection v2.4.0) View Source

The raised exception might include the reason which would be useful to programatically determine what was causing the error.