2023-05-15 08:51:32 +08:00
|
|
|
from services.errors.base import BaseServiceError
|
|
|
|
|
|
|
|
|
2024-09-11 16:40:52 +08:00
|
|
|
class AccountNotFoundError(BaseServiceError):
|
2023-05-15 08:51:32 +08:00
|
|
|
pass
|
|
|
|
|
|
|
|
|
|
|
|
class AccountRegisterError(BaseServiceError):
|
|
|
|
pass
|
|
|
|
|
|
|
|
|
|
|
|
class AccountLoginError(BaseServiceError):
|
|
|
|
pass
|
|
|
|
|
|
|
|
|
2024-10-21 10:03:40 +08:00
|
|
|
class AccountPasswordError(BaseServiceError):
|
|
|
|
pass
|
|
|
|
|
|
|
|
|
2023-05-15 08:51:32 +08:00
|
|
|
class AccountNotLinkTenantError(BaseServiceError):
|
|
|
|
pass
|
|
|
|
|
|
|
|
|
|
|
|
class CurrentPasswordIncorrectError(BaseServiceError):
|
|
|
|
pass
|
|
|
|
|
|
|
|
|
|
|
|
class LinkAccountIntegrateError(BaseServiceError):
|
|
|
|
pass
|
|
|
|
|
|
|
|
|
2024-09-11 16:40:52 +08:00
|
|
|
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
|
2024-07-05 13:38:51 +08:00
|
|
|
|
|
|
|
|
|
|
|
class RateLimitExceededError(BaseServiceError):
|
|
|
|
pass
|