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
| 45 | |
| 46 | |
| 47 | class 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 | |
| 61 | class DoesNotExist(QueryException): |