cognee/cognee/modules/data/exceptions/exceptions.py
Igor Ilic 35b1f7d26a chore: Update typo in code
Update typo in string in code

Chore COG-656
2024-12-13 17:08:05 +01:00

20 lines
No EOL
762 B
Python

from cognee.exceptions import CogneeApiError
from fastapi import status
class UnstructuredLibraryImportError(CogneeApiError):
def __init__(
self,
message: str = "Import error. Unstructured library is not installed.",
name: str = "UnstructuredModuleImportError",
status_code=status.HTTP_422_UNPROCESSABLE_ENTITY,
):
super().__init__(message, name, status_code)
class UnauthorizedDataAccessError(CogneeApiError):
def __init__(
self,
message: str = "User does not have permission to access this data.",
name: str = "UnauthorizedDataAccessError",
status_code=status.HTTP_401_UNAUTHORIZED,
):
super().__init__(message, name, status_code)