This document is for Kombu's development version, which can be significantly different from previous releases. Get the stable docs here: 5.3.
Source code for kombu.transport.SQS.exceptions
"""AWS SQS and SNS exceptions."""
from __future__ import annotations
from kombu.exceptions import KombuError
[docs]
class UndefinedQueueException(KombuError):
"""Predefined queues are being used and an undefined queue was used."""
[docs]
class UndefinedExchangeException(KombuError):
"""Predefined exchanges are being used and an undefined exchange/SNS topic was used."""
[docs]
class InvalidQueueException(KombuError):
"""Predefined queues are being used and configuration is not valid."""
[docs]
class AccessDeniedQueueException(KombuError):
"""Raised when access to the AWS queue is denied.
This may occur if the permissions are not correctly set or the
credentials are invalid.
"""
[docs]
class UnableToSubscribeQueueToTopicException(KombuError):
"""Raised when unable to subscribe a queue to an SNS topic."""
[docs]
class UnableToUnsubscribeQueueFromTopicException(KombuError):
"""Raised when unable to unsubscribe a queue from an SNS topic."""