mirror of
https://github.com/gryf/ebook-converter.git
synced 2026-03-11 12:05:45 +01:00
Initial import
This commit is contained in:
18
ebook_converter/css_selectors/errors.py
Normal file
18
ebook_converter/css_selectors/errors.py
Normal file
@@ -0,0 +1,18 @@
|
||||
#!/usr/bin/env python2
|
||||
# vim:fileencoding=utf-8
|
||||
from __future__ import absolute_import, division, print_function, unicode_literals
|
||||
|
||||
__license__ = 'GPL v3'
|
||||
__copyright__ = '2015, Kovid Goyal <kovid at kovidgoyal.net>'
|
||||
|
||||
class SelectorError(ValueError):
|
||||
|
||||
"""Common parent for SelectorSyntaxError and ExpressionError"""
|
||||
|
||||
class SelectorSyntaxError(SelectorError):
|
||||
|
||||
"""Parsing a selector that does not match the grammar."""
|
||||
|
||||
class ExpressionError(SelectorError):
|
||||
|
||||
"""Unknown or unsupported selector (eg. pseudo-class)."""
|
||||
Reference in New Issue
Block a user