requests-所有异常归类

IOError RequestException HTTPError(RequestException)  
UnrewindableBodyError(RequestException)  
RetryError(RequestException)  
ConnectionError(RequestException) ProxyError(ConnectionError)
SSLError(ConnectionError)
  ConnectTimeout(ConnectionError, Timeout)
Timeout(RequestException) ReadTimeout
URLRequired(RequestException)  
TooManyRedirects(RequestException)  
MissingSchema(RequestException, ValueError)  
InvalidSchema(RequestException,ValueError)  
InvalidURL(RequestException,ValueError)  
InvalidHeader(RequestException,ValueError)  
ChunkedEncodingError(RequestException)  
StreamConsumedError(RequestException,TypeError)  
ContentDecodingError(RequestException,BaseHTTPError)  
RequestsWarning(Warning)  FileModeWarning(RequestsWarning, DeprecationWarning)  

异常官方文档:http://www.python-requests.org/en/master/_modules/requests/exceptions/#RequestException

上一篇:vmware vcsa-6.5 网络架构之虚拟机的分布式交换机


下一篇:Qt 圆角矩形+鼠标左键拖动窗口