summaryrefslogtreecommitdiff
path: root/rfc3986/exceptions.py
blob: 19ad191dbf07e308450b33d932fa2af2faea92ea (plain)
1
2
3
4
5
6
7
8
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))