1234567891011121314151617181920 |
- # -*- coding: utf-8 -*-
- # @Time : 2023/7/20 16:45
- # @Author : XuJiakai
- # @File : fetch_exception
- # @Software: PyCharm
- class FetchException(Exception):
- def __init__(self, response_status=None, response_content=None, msg=None):
- self.__response_status = response_status
- self.__response_content = response_content
- self.__msg = msg
- pass
- def __str__(self):
- return f"拉取数据异常,response status: {self.__response_status} , msg:{self.__msg} , content : {self.__response_content}"
- if __name__ == '__main__':
- pass
|