Skip to content

ServerError

Base classes

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

⋔ Inheritance diagram

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

🛈 DocStrings

Bases: APIError

Raised when the API server encounters an error (500/529).

This includes internal server errors (500) and overload errors (529). Applications should implement retry logic for transient server errors.

Source code in src/clawd_code_sdk/_errors.py
class ServerError(APIError):
    """Raised when the API server encounters an error (500/529).

    This includes internal server errors (500) and overload errors (529).
    Applications should implement retry logic for transient server errors.
    """

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

:fa-brands-github: Show source on GitHub