Skip to content

BillingError

Base classes

Name Children Inherits
APIError
clawd_code_sdk._errors
Base exception for Anthropic API errors.

⋔ Inheritance diagram

graph TD
  2965514100["_errors.BillingError"]
  3485684694["_errors.APIError"]
  2055642102["_errors.ClaudeSDKError"]
  1615621424["builtins.Exception"]
  3224121899["builtins.BaseException"]
  2751680898["builtins.object"]
  3485684694 --> 2965514100
  2055642102 --> 3485684694
  1615621424 --> 2055642102
  3224121899 --> 1615621424
  2751680898 --> 3224121899

🛈 DocStrings

Bases: APIError

Raised when there's a billing issue with the API account.

This may indicate insufficient credits, expired subscription, or other billing-related issues.

Source code in src/clawd_code_sdk/_errors.py
class BillingError(APIError):
    """Raised when there's a billing issue with the API account.

    This may indicate insufficient credits, expired subscription, or other
    billing-related issues.
    """

    def __init__(self, message: str, model: Model | None = None) -> None:
        super().__init__(message, "billing_error", model)

:fa-brands-github: Show source on GitHub