class ApiException(Exception): def __init__(self, msg: str,code:int=400): self.msg = msg self.code = code