From 9817ec3e47bca8fba9a7cac56d785e9d644f7473 Mon Sep 17 00:00:00 2001 From: Lorry Tar Creator Date: Mon, 30 Jun 2014 23:17:28 +0000 Subject: Imported from /home/lorry/working-area/delta_python-packages_python-rfc3986/rfc3986-0.2.0.tar.gz. --- rfc3986/exceptions.py | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 rfc3986/exceptions.py (limited to 'rfc3986/exceptions.py') 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)) -- cgit v1.2.1