summaryrefslogtreecommitdiff
path: root/rfc3986/exceptions.py
diff options
context:
space:
mode:
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))