class ParamError(APIException):
""" http参数错误
"""
def __init__(self, err=const.ERR_MSG_INVALID):
self.msg = err['msg']
self.code = err['code']
self.detail = err['msg']
def __str__(self):
return self.msg
raise ParamError(const.ERR_MSG_USER_NOT_EXISTS)
网友评论