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

Method recv_body

cassandra/protocol.py:128–133  ·  view source on GitHub ↗
(cls, f, protocol_version, *args)

Source from the content-addressed store, hash-verified

126
127 @classmethod
128 def recv_body(cls, f, protocol_version, *args):
129 code = read_int(f)
130 msg = read_string(f)
131 subcls = error_classes.get(code, cls)
132 extra_info = subcls.recv_error_info(f, protocol_version)
133 return subcls(code=code, message=msg, info=extra_info)
134
135 def summary_msg(self):
136 msg = 'Error from server: code=%04x [%s] message="%s"' \

Callers 1

decode_messageMethod · 0.45

Calls 4

read_intFunction · 0.85
read_stringFunction · 0.85
getMethod · 0.45
recv_error_infoMethod · 0.45

Tested by

no test coverage detected