"""LLM-specific exception hierarchy."""
from __future__ import annotations

from libs.common.retries import ACEFError


class LLMError(ACEFError):
    """Base error for LLM operations."""


class LLMTimeoutError(LLMError):
    """LLM request timed out."""


class LLMSchemaError(LLMError):
    """LLM response did not match expected schema."""


class LLMCacheError(LLMError):
    """Cache read/write failure."""
