Files
zenml/venv/lib/python3.9/site-packages/mlflow/gateway/exceptions.py
Christian Mantha 2ca0b9ef7c star
2026-03-02 19:10:52 -05:00

15 lines
431 B
Python

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)