Files
LangBot/src/langbot/pkg/entity/errors/account.py
T
Hyu 5084f2391d fix(auth): support dynamic OSS callbacks and LangBot Account copy (#2428)
* fix(auth): support dynamic OSS callbacks and LangBot Account copy

* style(web): format LangBot Account copy

---------

Co-authored-by: dadachann <185672915+dadachann@users.noreply.github.com>
2026-08-13 23:18:01 +08:00

21 lines
613 B
Python

from __future__ import annotations
class AccountEmailMismatchError(Exception):
def __str__(self) -> str:
return 'Account email mismatch'
class SpaceAccountNotRegisteredError(AccountEmailMismatchError):
code = 'space_account_not_registered'
def __str__(self) -> str:
return 'No Account is registered for this Space email'
class SpaceAccountBindingRequiredError(AccountEmailMismatchError):
code = 'space_account_binding_required'
def __str__(self) -> str:
return 'This local account must bind a LangBot Account from Account settings before LangBot Account login'