Skip to content

Commit 41c24ef

Browse files
stainless-botRobertCraigie
authored andcommitted
feat(package): export a root error type (#108)
1 parent 2bf2657 commit 41c24ef

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

src/finch/__init__.py

+2
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
from ._version import __title__, __version__
1818
from ._exceptions import (
1919
APIError,
20+
FinchError,
2021
ConflictError,
2122
NotFoundError,
2223
APIStatusError,
@@ -38,6 +39,7 @@
3839
"NoneType",
3940
"Transport",
4041
"ProxiesTypes",
42+
"FinchError",
4143
"APIError",
4244
"APIStatusError",
4345
"APITimeoutError",

src/finch/_exceptions.py

+5-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,11 @@
1818
]
1919

2020

21-
class APIError(Exception):
21+
class FinchError(Exception):
22+
pass
23+
24+
25+
class APIError(FinchError):
2226
message: str
2327
request: httpx.Request
2428

0 commit comments

Comments
 (0)