ForcePilot/backend/package/yuxi/channel/domain/exception/duplicate_binding.py
Kris ff36b9f334 feat(channel-domain): 新增领域模型、异常、端口及基础工具类
新增消息日志、发件箱、会话等领域模型,新增多类型业务异常定义,添加工厂协议端口与数据库工作单元实现,同时补充飞书、钩子、Web渠道的请求验证器,以及数据转换类和异常翻译工具
2026-05-31 21:42:35 +08:00

12 lines
427 B
Python

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}")