Thrown if a datastructure queue is empty
| 1572 | |
| 1573 | |
| 1574 | class QueueEmpty(CouchbaseException): |
| 1575 | """ |
| 1576 | Thrown if a datastructure queue is empty |
| 1577 | """ |
| 1578 | |
| 1579 | def __init__(self, message=None, **kwargs): |
| 1580 | if message and isinstance(message, str) and 'message' not in kwargs: |
| 1581 | kwargs['message'] = message |
| 1582 | super().__init__(**kwargs) |
| 1583 | |
| 1584 | def __repr__(self): |
| 1585 | return f"{type(self).__name__}({super().__repr__()})" |
| 1586 | |
| 1587 | def __str__(self): |
| 1588 | return self.__repr__() |
| 1589 | |
| 1590 | |
| 1591 | class UnsuccessfulOperationException(CouchbaseException): |