MCPcopy Index your code
hub / github.com/apache/cassandra-python-driver / ConnectionException

Class ConnectionException

cassandra/connection.py:399–411  ·  view source on GitHub ↗

An unrecoverable error was hit when attempting to use a connection, or the connection was already closed or defunct.

Source from the content-addressed store, hash-verified

397
398
399class ConnectionException(Exception):
400 """
401 An unrecoverable error was hit when attempting to use a connection,
402 or the connection was already closed or defunct.
403 """
404
405 def __init__(self, message, endpoint=None):
406 Exception.__init__(self, message)
407 self.endpoint = endpoint
408
409 @property
410 def host(self):
411 return self.endpoint.address
412
413
414class ConnectionShutdown(ConnectionException):

Callers 15

run_add_or_renew_poolMethod · 0.90
_queryMethod · 0.90
_set_resultMethod · 0.90
_get_connectionMethod · 0.90
borrow_connectionMethod · 0.90
_wait_for_connMethod · 0.90
info_callbackMethod · 0.90
_get_socket_addressesMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected