You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

19 lines
410 B

# -*- coding: utf-8 -*-
from httpx import RequestError
class DataFetchError(RequestError):
"""未知异常"""
def __init__(self, message, url, method="GET", params=None):
self.message = message
self.url = url
self.method = method
self.params = params
def __str__(self):
return self.message
class IPBlockError(RequestError):
"""ip被封禁异常"""