from __future__ import annotations class DuplicateBindingException(Exception): def __init__(self, channel_type: str, account_id: str, group_id: str): self.channel_type = channel_type self.account_id = account_id self.group_id = group_id super().__init__(f"binding already exists: {channel_type}/{account_id}/{group_id}")