MCPcopy Create free account
hub / github.com/apache/cassandra-python-driver / exception_from_response

Method exception_from_response

cassandra/cluster.py:4938–4942  ·  view source on GitHub ↗
(response)

Source from the content-addressed store, hash-verified

4936 def _handle_retry_decision(self, retry_decision, response, host):
4937
4938 def exception_from_response(response):
4939 if hasattr(response, 'to_exception'):
4940 return response.to_exception()
4941 else:
4942 return response
4943
4944 retry_type, consistency = retry_decision
4945 if retry_type in (RetryPolicy.RETRY, RetryPolicy.RETRY_NEXT_HOST):

Callers

nothing calls this directly

Calls 1

to_exceptionMethod · 0.45

Tested by

no test coverage detected