A subclass of :exc:`CoordinationFailure` for read operations. This indicates that the replicas sent a failure message to the coordinator.
| 561 | |
| 562 | |
| 563 | class ReadFailure(CoordinationFailure): |
| 564 | """ |
| 565 | A subclass of :exc:`CoordinationFailure` for read operations. |
| 566 | |
| 567 | This indicates that the replicas sent a failure message to the coordinator. |
| 568 | """ |
| 569 | |
| 570 | data_retrieved = None |
| 571 | """ |
| 572 | A boolean indicating whether the requested data was retrieved |
| 573 | by the coordinator from any replicas before it timed out the |
| 574 | operation |
| 575 | """ |
| 576 | |
| 577 | def __init__(self, message, data_retrieved=None, **kwargs): |
| 578 | CoordinationFailure.__init__(self, message, **kwargs) |
| 579 | self.data_retrieved = data_retrieved |
| 580 | |
| 581 | |
| 582 | class WriteFailure(CoordinationFailure): |