Home / File/ error_object.py — anthropic-sdk-python Source File

error_object.py — anthropic-sdk-python Source File

Architecture documentation for error_object.py, a python file in the anthropic-sdk-python codebase. 21 imports, 2 dependents.

File python AnthropicClient 21 imports 2 dependents

Entity Profile

Dependency Diagram

graph LR
  4db6ec37_52c7_018c_8458_280ef66f5a9d["error_object.py"]
  e35ee47c_4f79_c860_35e6_870b4aa593e9["_utils"]
  4db6ec37_52c7_018c_8458_280ef66f5a9d --> e35ee47c_4f79_c860_35e6_870b4aa593e9
  3d098dab_cf57_d320_efaa_27871692f551["billing_error.py"]
  4db6ec37_52c7_018c_8458_280ef66f5a9d --> 3d098dab_cf57_d320_efaa_27871692f551
  3b8fd829_45f1_c248_9fa7_5406cd40731a["BillingError"]
  4db6ec37_52c7_018c_8458_280ef66f5a9d --> 3b8fd829_45f1_c248_9fa7_5406cd40731a
  defc1c0c_2df4_3a22_af83_116fddad0abd["not_found_error.py"]
  4db6ec37_52c7_018c_8458_280ef66f5a9d --> defc1c0c_2df4_3a22_af83_116fddad0abd
  7f828d21_74f0_1cf9_7822_9a41e986a8ab["NotFoundError"]
  4db6ec37_52c7_018c_8458_280ef66f5a9d --> 7f828d21_74f0_1cf9_7822_9a41e986a8ab
  33f365ec_5d7e_2fe2_e964_a88fb0caaf1d["api_error_object.py"]
  4db6ec37_52c7_018c_8458_280ef66f5a9d --> 33f365ec_5d7e_2fe2_e964_a88fb0caaf1d
  04d8ca4e_3d22_4687_1479_6bd9ac831089["APIErrorObject"]
  4db6ec37_52c7_018c_8458_280ef66f5a9d --> 04d8ca4e_3d22_4687_1479_6bd9ac831089
  16c21002_6a38_851c_eed5_fbabc5aee188["overloaded_error.py"]
  4db6ec37_52c7_018c_8458_280ef66f5a9d --> 16c21002_6a38_851c_eed5_fbabc5aee188
  3579ac38_b0d6_c649_00bf_afcf90f6ca3b["OverloadedError"]
  4db6ec37_52c7_018c_8458_280ef66f5a9d --> 3579ac38_b0d6_c649_00bf_afcf90f6ca3b
  ea80675b_85f1_be78_1850_aeee30c6418c["permission_error.py"]
  4db6ec37_52c7_018c_8458_280ef66f5a9d --> ea80675b_85f1_be78_1850_aeee30c6418c
  150b8c55_47d4_82f2_b0b1_195e2869e2a3["PermissionError"]
  4db6ec37_52c7_018c_8458_280ef66f5a9d --> 150b8c55_47d4_82f2_b0b1_195e2869e2a3
  dbfee3da_51a8_2fa2_8474_c747dc720467["rate_limit_error.py"]
  4db6ec37_52c7_018c_8458_280ef66f5a9d --> dbfee3da_51a8_2fa2_8474_c747dc720467
  6559aa98_f2b0_8529_51e8_54c445419012["RateLimitError"]
  4db6ec37_52c7_018c_8458_280ef66f5a9d --> 6559aa98_f2b0_8529_51e8_54c445419012
  d50d0d7c_dacc_34d6_1067_8c25bfe2517b["authentication_error.py"]
  4db6ec37_52c7_018c_8458_280ef66f5a9d --> d50d0d7c_dacc_34d6_1067_8c25bfe2517b
  style 4db6ec37_52c7_018c_8458_280ef66f5a9d fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.

from typing import Union
from typing_extensions import Annotated, TypeAlias

from ..._utils import PropertyInfo
from .billing_error import BillingError
from .not_found_error import NotFoundError
from .api_error_object import APIErrorObject
from .overloaded_error import OverloadedError
from .permission_error import PermissionError
from .rate_limit_error import RateLimitError
from .authentication_error import AuthenticationError
from .gateway_timeout_error import GatewayTimeoutError
from .invalid_request_error import InvalidRequestError

__all__ = ["ErrorObject"]

ErrorObject: TypeAlias = Annotated[
    Union[
        InvalidRequestError,
        AuthenticationError,
        BillingError,
        PermissionError,
        NotFoundError,
        RateLimitError,
        GatewayTimeoutError,
        APIErrorObject,
        OverloadedError,
    ],
    PropertyInfo(discriminator="type"),
]

Frequently Asked Questions

What does error_object.py do?
error_object.py is a source file in the anthropic-sdk-python codebase, written in python. It belongs to the AnthropicClient domain.
What does error_object.py depend on?
error_object.py imports 21 module(s): APIErrorObject, AuthenticationError, BillingError, GatewayTimeoutError, InvalidRequestError, NotFoundError, OverloadedError, PermissionError, and 13 more.
What files import error_object.py?
error_object.py is imported by 2 file(s): __init__.py, error_response.py.
Where is error_object.py in the architecture?
error_object.py is located at src/anthropic/types/shared/error_object.py (domain: AnthropicClient, directory: src/anthropic/types/shared).

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free