class ApiError(BaseException): def __init__(self: "ApiError", msg: str) -> None: self.msg = msg def __str__(self: "ApiError") -> str: return self.msg class EmptyPhoneError(BaseException): pass class EmptyCode(BaseException): pass