aboutsummaryrefslogtreecommitdiffstats
path: root/http_errors.py
diff options
context:
space:
mode:
authorJames Taylor <user234683@users.noreply.github.com>2018-12-20 01:11:50 -0800
committerJames Taylor <user234683@users.noreply.github.com>2018-12-20 01:11:50 -0800
commita8d74ba082404bac016b210d151fb2d46cbd54d9 (patch)
treedd8f6409edf999ec2ea0f0b1d2e05453dce3f949 /http_errors.py
parent9d1c688310849f897c5fc7b3f37ab3ddeac67a9b (diff)
downloadyt-local-a8d74ba082404bac016b210d151fb2d46cbd54d9.tar.lz
yt-local-a8d74ba082404bac016b210d151fb2d46cbd54d9.tar.xz
yt-local-a8d74ba082404bac016b210d151fb2d46cbd54d9.zip
Correctly handle case where channel doesn't exist
Diffstat (limited to 'http_errors.py')
-rw-r--r--http_errors.py11
1 files changed, 11 insertions, 0 deletions
diff --git a/http_errors.py b/http_errors.py
new file mode 100644
index 0000000..975e0d4
--- /dev/null
+++ b/http_errors.py
@@ -0,0 +1,11 @@
+class Error4xx(Exception):
+ pass
+class Error404(Error4xx):
+ pass
+
+class Error5xx(Exception):
+ pass
+class Error500(Error5xx):
+ pass
+class Error502(Error5xx):
+ pass