Raised when a provided argmument has an invalid value and/or invalid type.
| 535 | |
| 536 | |
| 537 | class InvalidArgumentException(CouchbaseException): |
| 538 | """ Raised when a provided argmument has an invalid value |
| 539 | and/or invalid type. |
| 540 | """ |
| 541 | |
| 542 | def __init__(self, message=None, **kwargs): |
| 543 | if message and isinstance(message, str) and 'message' not in kwargs: |
| 544 | kwargs['message'] = message |
| 545 | super().__init__(**kwargs) |
| 546 | |
| 547 | def __repr__(self): |
| 548 | return f"{type(self).__name__}({super().__repr__()})" |
| 549 | |
| 550 | def __str__(self): |
| 551 | return self.__repr__() |
| 552 | |
| 553 | |
| 554 | class AuthenticationException(CouchbaseException): |
no outgoing calls
no test coverage detected