Underground-Digital/Workflow-Engine
0
1from libs.exception import BaseHTTPException2 3 4class RepeatPasswordNotMatchError(BaseHTTPException):5 error_code = "repeat_password_not_match"6 description = "New password and repeat password does not match."7 code = 4008 9 10class CurrentPasswordIncorrectError(BaseHTTPException):11 error_code = "current_password_incorrect"12 description = "Current password is incorrect."13 code = 40014 15 16class ProviderRequestFailedError(BaseHTTPException):17 error_code = "provider_request_failed"18 description = None19 code = 40020 21 22class InvalidInvitationCodeError(BaseHTTPException):23 error_code = "invalid_invitation_code"24 description = "Invalid invitation code."25 code = 40026 27 28class AccountAlreadyInitedError(BaseHTTPException):29 error_code = "account_already_inited"30 description = "The account has been initialized. Please refresh the page."31 code = 40032 33 34class AccountNotInitializedError(BaseHTTPException):35 error_code = "account_not_initialized"36 description = "The account has not been initialized yet. Please proceed with the initialization process first."37 code = 40038 