Skip to content

Commit

Permalink
feat(package): export a root error type (#163)
Browse files Browse the repository at this point in the history
  • Loading branch information
stainless-bot authored Sep 25, 2023
1 parent 329b307 commit e7aa3e7
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 2 additions & 0 deletions src/anthropic/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
APIError,
ConflictError,
NotFoundError,
AnthropicError,
APIStatusError,
RateLimitError,
APITimeoutError,
Expand All @@ -40,6 +41,7 @@
"NoneType",
"Transport",
"ProxiesTypes",
"AnthropicError",
"APIError",
"APIStatusError",
"APITimeoutError",
Expand Down
6 changes: 5 additions & 1 deletion src/anthropic/_exceptions.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,11 @@
]


class APIError(Exception):
class AnthropicError(Exception):
pass


class APIError(AnthropicError):
message: str
request: httpx.Request

Expand Down

0 comments on commit e7aa3e7

Please sign in to comment.