Buckets:
AnonymousSpottedToad/candidate_bucket / codebase /python /topoteretes_cognee /cognee /modules /users /exceptions /exceptions.py
| from cognee.exceptions import CogneeValidationError | |
| from fastapi import status | |
| class RoleNotFoundError(CogneeValidationError): | |
| """User group not found""" | |
| def __init__( | |
| self, | |
| message: str = "User role not found.", | |
| name: str = "RoleNotFoundError", | |
| status_code=status.HTTP_404_NOT_FOUND, | |
| ): | |
| super().__init__(message, name, status_code) | |
| class TenantNotFoundError(CogneeValidationError): | |
| """User group not found""" | |
| def __init__( | |
| self, | |
| message: str = "Tenant not found.", | |
| name: str = "TenantNotFoundError", | |
| status_code=status.HTTP_404_NOT_FOUND, | |
| ): | |
| super().__init__(message, name, status_code) | |
| class UserNotFoundError(CogneeValidationError): | |
| """User not found""" | |
| def __init__( | |
| self, | |
| message: str = "No user found in the system. Please create a user.", | |
| name: str = "UserNotFoundError", | |
| status_code=status.HTTP_404_NOT_FOUND, | |
| ): | |
| super().__init__(message, name, status_code) | |
| class PermissionDeniedError(CogneeValidationError): | |
| def __init__( | |
| self, | |
| message: str = "User does not have permission on documents.", | |
| name: str = "PermissionDeniedError", | |
| status_code=status.HTTP_403_FORBIDDEN, | |
| log: bool = True, | |
| log_level: str = "ERROR", | |
| ): | |
| super().__init__(message, name, status_code, log, log_level) | |
| class PermissionNotFoundError(CogneeValidationError): | |
| def __init__( | |
| self, | |
| message: str = "Permission type does not exist.", | |
| name: str = "PermissionNotFoundError", | |
| status_code=status.HTTP_403_FORBIDDEN, | |
| ): | |
| super().__init__(message, name, status_code) | |
Xet Storage Details
- Size:
- 1.72 kB
- Xet hash:
- d0d9edc98173c8b65772a81cd0ca7b235ed978206c70473d7abdcf3303c6627e
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.