This commit is contained in:
Christian Mantha
2026-03-02 19:10:52 -05:00
commit 2ca0b9ef7c
28907 changed files with 5233713 additions and 0 deletions

View File

@@ -0,0 +1,14 @@
class AIGatewayConfigException(Exception):
pass
class AIGatewayException(Exception):
"""
A custom exception class for handling exceptions raised by the AI Gateway.
This will be transformed into an HTTPException before being returned to the client.
"""
def __init__(self, status_code: int, detail: str):
self.status_code = status_code
self.detail = detail
super().__init__(detail)