Skip to content

exceptions

django_spire.help_desk.exceptions

HelpDeskError

TicketEventNotificationTypeNotSupportedError

Bases: HelpDeskError, TypeError

Source code in django_spire/help_desk/exceptions.py
def __init__(
    self,
    event_type: TicketEventType | None,
    notification_type: NotificationTypeChoices
) -> None:
    if event_type is None:
        super().__init__(f'Notification type not supported: {notification_type}')
    else:
        super().__init__(
            f'Combination of event type and notification type not supported: '
            f'Event type {event_type} - Notification type {notification_type}'
        )

HelpDeskNotificationRecipientMissingEmailError

Bases: HelpDeskError, ValueError

Source code in django_spire/help_desk/exceptions.py
def __init__(self, recipient: str) -> None:
    super().__init__(f'Recipient is missing an email address: {recipient}')