cognee/cognee/shared/exceptions/exceptions.py
2025-10-22 17:38:41 +01:00

12 lines
362 B
Python

from cognee.exceptions import CogneeValidationError
from fastapi import status
class IngestionError(CogneeValidationError):
def __init__(
self,
message: str = "Failed to load data.",
name: str = "IngestionError",
status_code=status.HTTP_422_UNPROCESSABLE_CONTENT,
):
super().__init__(message, name, status_code)