自定义工具带异常¶
以下是工具带使用的异常类,用于向工具带用户提供错误详细信息。
requests-toolbelt 引发的异常集合。
- exception requests_toolbelt.exceptions.RequestsVersionTooOld¶
用于指示 Requests 版本过旧。
如果 Requests 版本过旧,无法支持某个功能,我们将向用户发出此警告。
- exception requests_toolbelt.exceptions.StreamingError¶
用于
requests_toolbelt.downloadutils.stream
。
- exception requests_toolbelt.exceptions.VersionMismatchError¶
用于指示所需 Requests 版本中存在版本不匹配。
正在使用的功能需要更新版本的 Requests 才能正常运行,但已安装的版本不足以满足要求。