Source code for stream_manager.exceptions

"""
Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
SPDX-License-Identifier: Apache-2.0
"""


[docs]class StreamManagerException(Exception): def __init__(self, message="", status=None, request_id=None): super().__init__(message) self.status = status self.request_id = request_id self.message = message
[docs]class ClientException(StreamManagerException): pass
[docs]class ValidationException(ClientException): pass
[docs]class ConnectFailedException(ClientException): pass
[docs]class InvalidRequestException(StreamManagerException): pass
[docs]class RequestPayloadTooLargeException(StreamManagerException): pass
[docs]class ResourceNotFoundException(StreamManagerException): pass
[docs]class ResponsePayloadTooLargeException(StreamManagerException): pass
[docs]class ServerTimeoutException(StreamManagerException): pass
[docs]class UnauthorizedException(StreamManagerException): pass
[docs]class UnknownFailureException(StreamManagerException): pass
[docs]class NotEnoughMessagesException(StreamManagerException): pass
[docs]class MessageStoreReadErrorException(StreamManagerException): pass
[docs]class ServerOutOfMemoryException(StreamManagerException): pass
[docs]class UpdateFailedException(StreamManagerException): pass
[docs]class UnknownOperationException(StreamManagerException): pass
[docs]class UpdateNotAllowedException(InvalidRequestException): pass