dify/api/services/errors/account.py

62 lines
932 B
Python
Raw Normal View History

2023-05-15 08:51:32 +08:00
from services.errors.base import BaseServiceError
class AccountNotFoundError(BaseServiceError):
2023-05-15 08:51:32 +08:00
pass
class AccountRegisterError(BaseServiceError):
pass
class AccountLoginError(BaseServiceError):
pass
class AccountPasswordError(BaseServiceError):
pass
2023-05-15 08:51:32 +08:00
class AccountNotLinkTenantError(BaseServiceError):
pass
class CurrentPasswordIncorrectError(BaseServiceError):
pass
class LinkAccountIntegrateError(BaseServiceError):
pass
class TenantNotFoundError(BaseServiceError):
2023-05-15 08:51:32 +08:00
pass
class AccountAlreadyInTenantError(BaseServiceError):
pass
class InvalidActionError(BaseServiceError):
pass
class CannotOperateSelfError(BaseServiceError):
pass
class NoPermissionError(BaseServiceError):
pass
class MemberNotInTenantError(BaseServiceError):
pass
class RoleAlreadyAssignedError(BaseServiceError):
pass
class RateLimitExceededError(BaseServiceError):
pass