summaryrefslogtreecommitdiff
path: root/rfc3986/exceptions.py
diff options
context:
space:
mode:
authorLorry Tar Creator <lorry-tar-importer@baserock.org>2014-06-30 23:17:28 +0000
committer <>2014-10-24 11:03:41 +0000
commit9817ec3e47bca8fba9a7cac56d785e9d644f7473 (patch)
tree2eddc46197f66e1629dcdf01bf0cb543c729920c /rfc3986/exceptions.py
downloadpython-rfc3986-9817ec3e47bca8fba9a7cac56d785e9d644f7473.tar.gz
Imported from /home/lorry/working-area/delta_python-packages_python-rfc3986/rfc3986-0.2.0.tar.gz.HEADrfc3986-0.2.0master
Diffstat (limited to 'rfc3986/exceptions.py')
-rw-r--r--rfc3986/exceptions.py9
1 files changed, 9 insertions, 0 deletions
diff --git a/rfc3986/exceptions.py b/rfc3986/exceptions.py
new file mode 100644
index 0000000..19ad191
--- /dev/null
+++ b/rfc3986/exceptions.py
@@ -0,0 +1,9 @@
+# -*- coding: utf-8 -*-
+class RFC3986Exception(Exception):
+ pass
+
+
+class InvalidAuthority(RFC3986Exception):
+ def __init__(self, authority):
+ super(InvalidAuthority, self).__init__(
+ "The authority ({0}) is not valid.".format(authority))