Debian Codegraph @

src/css_selectors/errors.py

raw
1 #!/usr/bin/env python
2 # vim:fileencoding=utf-8
3
4
5 __license__ = 'GPL v3'
6 __copyright__ = '2015, Kovid Goyal <kovid at kovidgoyal.net>'
7
8 class SelectorError(ValueError):
9
10 """Common parent for SelectorSyntaxError and ExpressionError"""
11
12 class SelectorSyntaxError(SelectorError):
13
14 """Parsing a selector that does not match the grammar."""
15
16 class ExpressionError(SelectorError):
17
18 """Unknown or unsupported selector (eg. pseudo-class)."""