from __future__ import annotations from yuxi.channel.domain.exception.channel_error import ChannelError class DuplicateBindingException(ChannelError): 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"duplicate binding: {channel_type}/{account_id}/{group_id}")