From: Matus Ferech Date: Sat, 4 May 2019 15:42:55 +0000 (+0200) Subject: Add `HttpError` X-Git-Tag: 0.3.0~41^2~2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=21970153864d541af243d7adba3eb4510cbdfd5f;p=thirdparty%2Fhttpx.git Add `HttpError` --- diff --git a/httpcore/exceptions.py b/httpcore/exceptions.py index 55d377e0..ad040132 100644 --- a/httpcore/exceptions.py +++ b/httpcore/exceptions.py @@ -34,6 +34,12 @@ class PoolTimeout(Timeout): # HTTP exceptions... +class HttpError(Exception): + """ + An Http error occurred. + """ + + class ProtocolError(Exception): """ Malformed HTTP.