A subclass of :exc:`Timeout` for write operations. This indicates that the replicas failed to respond to the coordinator node before the configured timeout. This timeout is configured in ``cassandra.yaml`` with the ``write_request_timeout_in_ms`` option.
| 480 | |
| 481 | |
| 482 | class WriteTimeout(Timeout): |
| 483 | """ |
| 484 | A subclass of :exc:`Timeout` for write operations. |
| 485 | |
| 486 | This indicates that the replicas failed to respond to the coordinator |
| 487 | node before the configured timeout. This timeout is configured in |
| 488 | ``cassandra.yaml`` with the ``write_request_timeout_in_ms`` |
| 489 | option. |
| 490 | """ |
| 491 | |
| 492 | write_type = None |
| 493 | """ |
| 494 | The type of write operation, enum on :class:`~cassandra.policies.WriteType` |
| 495 | """ |
| 496 | |
| 497 | def __init__(self, message, write_type=None, **kwargs): |
| 498 | kwargs["write_type"] = write_type |
| 499 | Timeout.__init__(self, message, **kwargs) |
| 500 | self.write_type = write_type |
| 501 | |
| 502 | |
| 503 | class CDCWriteFailure(RequestExecutionException): |