diff --git a/src/finch/__init__.py b/src/finch/__init__.py index aa714bb4..f8e4ab2e 100644 --- a/src/finch/__init__.py +++ b/src/finch/__init__.py @@ -17,6 +17,7 @@ from ._version import __title__, __version__ from ._exceptions import ( APIError, + FinchError, ConflictError, NotFoundError, APIStatusError, @@ -38,6 +39,7 @@ "NoneType", "Transport", "ProxiesTypes", + "FinchError", "APIError", "APIStatusError", "APITimeoutError", diff --git a/src/finch/_exceptions.py b/src/finch/_exceptions.py index cfcd58af..4b1e0a1d 100644 --- a/src/finch/_exceptions.py +++ b/src/finch/_exceptions.py @@ -18,7 +18,11 @@ ] -class APIError(Exception): +class FinchError(Exception): + pass + + +class APIError(FinchError): message: str request: httpx.Request