"""业务异常基类。"""

from __future__ import annotations

from fastapi_common.fastapi_common_web.domain.responses import StatusCodeEnum


class BusinessException(Exception):
    """所有业务异常继承此类。"""

    def __init__(self, status: StatusCodeEnum, message: str):
        self.status = status
        self.message = message
        super().__init__(message)
