A subclass of :exc:`CoordinationFailure` for write operations. This indicates that the replicas sent a failure message to the coordinator.
| 580 | |
| 581 | |
| 582 | class WriteFailure(CoordinationFailure): |
| 583 | """ |
| 584 | A subclass of :exc:`CoordinationFailure` for write operations. |
| 585 | |
| 586 | This indicates that the replicas sent a failure message to the coordinator. |
| 587 | """ |
| 588 | |
| 589 | write_type = None |
| 590 | """ |
| 591 | The type of write operation, enum on :class:`~cassandra.policies.WriteType` |
| 592 | """ |
| 593 | |
| 594 | def __init__(self, message, write_type=None, **kwargs): |
| 595 | CoordinationFailure.__init__(self, message, **kwargs) |
| 596 | self.write_type = write_type |
| 597 | |
| 598 | |
| 599 | class FunctionFailure(RequestExecutionException): |