"""Custom exceptions for agentbudget."""


class BudgetExceededWarning(UserWarning):
    """Warning raised when a session's cost exceeds the configured budget.

    This is the default behavior when strict=False (the default).
    """
    pass


class BudgetExceededError(Exception):
    """Exception raised when a session's cost exceeds the configured budget.

    Only raised when strict=True is passed to CostSession.
    """
    pass
