| 1559 | |
| 1560 | |
| 1561 | class MissingTokenException(CouchbaseException): |
| 1562 | def __init__(self, message=None, **kwargs): |
| 1563 | if message and isinstance(message, str) and 'message' not in kwargs: |
| 1564 | kwargs['message'] = message |
| 1565 | super().__init__(**kwargs) |
| 1566 | |
| 1567 | def __repr__(self): |
| 1568 | return f"{type(self).__name__}({super().__repr__()})" |
| 1569 | |
| 1570 | def __str__(self): |
| 1571 | return self.__repr__() |
| 1572 | |
| 1573 | |
| 1574 | class QueueEmpty(CouchbaseException): |