Normalize OperationTimedOut initialization

Description

init currently takes "errors", which in some places is a dict, and other places is just a string error. This task will be to normalize that (probably construct with a single "error" string, which can be str(errors) in the former case.

Environment

None

Pull Requests

None

Activity

Show:
Adam Holmberg
August 18, 2016, 1:39 AM

After first trying to preserve the OperationTimedOut API (map of errors by host), I realized that it will not be possible in all cases. For example, it is not possible to generate a host/error list for this, where all we have are incomplete futures for bool results:
https://github.com/datastax/python-driver/blob/3.6.0/cassandra/cluster.py#L989

There are also a bunch of instances in connection.py that create one without a map. I still think we should flatten the error map and make the exception take a string, but it will have to wait for 4.0 so we can change it.

Assignee

Adam Holmberg

Reporter

Adam Holmberg

Fix versions

Labels

None

PM Priority

None

External issue ID

None

Doc Impact

None

Reviewer

None

Size

None

Pull Request

None

Sprint

Py P-MAJOR-NEXT

Priority

Minor