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

Class LWTException

cassandra/cqlengine/query.py:47–58  ·  view source on GitHub ↗

Lightweight conditional exception. This exception will be raised when a write using an `IF` clause could not be applied due to existing data violating the condition. The existing data is available through the ``existing`` attribute. :param existing: The current state of the data wh

Source from the content-addressed store, hash-verified

45
46
47class LWTException(CQLEngineException):
48 """Lightweight conditional exception.
49
50 This exception will be raised when a write using an `IF` clause could not be
51 applied due to existing data violating the condition. The existing data is
52 available through the ``existing`` attribute.
53
54 :param existing: The current state of the data which prevented the write.
55 """
56 def __init__(self, existing):
57 super(LWTException, self).__init__("LWT Query was not applied")
58 self.existing = existing
59
60
61class DoesNotExist(QueryException):

Callers 1

check_appliedFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected