changes base class for vectordb exceptions

This commit is contained in:
hajdul88 2025-08-13 12:39:34 +02:00
parent 9fb9f68c42
commit 91b9c11cd0

View file

@ -1,8 +1,8 @@
from fastapi import status
from cognee.exceptions import CriticalError
from cognee.exceptions import CogneeValidationError
class CollectionNotFoundError(CriticalError):
class CollectionNotFoundError(CogneeValidationError):
"""
Represents an error that occurs when a requested collection cannot be found.
@ -16,7 +16,5 @@ class CollectionNotFoundError(CriticalError):
message,
name: str = "CollectionNotFoundError",
status_code: int = status.HTTP_422_UNPROCESSABLE_ENTITY,
log=True,
log_level="DEBUG",
):
super().__init__(message, name, status_code, log, log_level)
super().__init__(message, name, status_code)