"""MetricFlow SDK exception hierarchy."""

from __future__ import annotations

__all__ = [
    "MetricFlowSDKError",
    "InitializationError",
    "QueryError",
    "ClientClosedError",
]


class MetricFlowSDKError(Exception):
    """所有 SDK 异常的基类。"""

    pass


class InitializationError(MetricFlowSDKError):
    """初始化失败。"""

    pass


class QueryError(MetricFlowSDKError):
    """查询执行失败。"""

    pass


class ClientClosedError(MetricFlowSDKError):
    """Client 已关闭后的操作。"""

    pass
