1 <?xml version="1.0" encoding="ascii"?>
2 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
3 "DTD/xhtml1-transitional.dtd">
4 <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
6 <title>cssselect.parser.SelectorError</title>
7 <link rel="stylesheet" href="epydoc.css" type="text/css" />
8 <script type="text/javascript" src="epydoc.js"></script>
11 <body bgcolor="white" text="black" link="blue" vlink="#204080"
13 <!-- ==================== NAVIGATION BAR ==================== -->
14 <table class="navbar" border="0" width="100%" cellpadding="0"
15 bgcolor="#a0c0ff" cellspacing="0">
18 <th> <a
19 href="lxml-module.html">Home</a> </th>
22 <th> <a
23 href="module-tree.html">Trees</a> </th>
26 <th> <a
27 href="identifier-index.html">Indices</a> </th>
30 <th> <a
31 href="help.html">Help</a> </th>
33 <!-- Project homepage -->
34 <th class="navbar" align="right" width="100%">
35 <table border="0" cellpadding="0" cellspacing="0">
36 <tr><th class="navbar" align="center"
37 ><a class="navbar" target="_top" href="/">lxml API</a></th>
41 <table width="100%" cellpadding="0" cellspacing="0">
44 <span class="breadcrumbs">
48 Class SelectorError
52 <table cellpadding="0" cellspacing="0">
53 <!-- hide/show private -->
54 <tr><td align="right"><span class="options">[<a href="javascript:void(0);" class="privatelink"
55 onclick="toggle_private();">hide private</a>]</span></td></tr>
56 <tr><td align="right"><span class="options"
57 >[<a href="frames.html" target="_top">frames</a
58 >] | <a href="cssselect.parser.SelectorError-class.html"
59 target="_top">no frames</a>]</span></td></tr>
64 <!-- ==================== CLASS DESCRIPTION ==================== -->
65 <h1 class="epydoc">Class SelectorError</h1><p class="nomargin-top"></p>
66 <pre class="base-tree">
69 exceptions.BaseException --+
71 exceptions.Exception --+
73 <strong class="uidshort">SelectorError</strong>
76 <dl><dt>Known Subclasses:</dt>
78 <ul class="subclass-list">
79 <li><a href="cssselect.xpath.ExpressionError-class.html">xpath.ExpressionError</a></li><li>, <a href="cssselect.parser.SelectorSyntaxError-class.html">SelectorSyntaxError</a></li> </ul>
83 <pre class="literalblock">
84 Common parent for :class:`SelectorSyntaxError` and
85 :class:`ExpressionError`.
87 You can just use ``except SelectorError:`` when calling
88 :meth:`~GenericTranslator.css_to_xpath` and handle both exceptions types.
92 <!-- ==================== INSTANCE METHODS ==================== -->
93 <a name="section-InstanceMethods"></a>
94 <table class="summary" border="1" cellpadding="3"
95 cellspacing="0" width="100%" bgcolor="white">
96 <tr bgcolor="#70b0f0" class="table-header">
97 <td colspan="2" class="table-header">
98 <table border="0" cellpadding="0" cellspacing="0" width="100%">
100 <td align="left"><span class="table-header">Instance Methods</span></td>
101 <td align="right" valign="top"
102 ><span class="options">[<a href="#section-InstanceMethods"
103 class="privatelink" onclick="toggle_private();"
104 >hide private</a>]</span></td>
110 <td colspan="2" class="summary">
111 <p class="indent-wrapped-lines"><b>Inherited from <code>exceptions.Exception</code></b>:
112 <code>__init__</code>,
115 <p class="indent-wrapped-lines"><b>Inherited from <code>exceptions.BaseException</code></b>:
116 <code>__delattr__</code>,
117 <code>__getattribute__</code>,
118 <code>__getitem__</code>,
119 <code>__getslice__</code>,
120 <code>__reduce__</code>,
121 <code>__repr__</code>,
122 <code>__setattr__</code>,
123 <code>__setstate__</code>,
124 <code>__str__</code>,
125 <code>__unicode__</code>
127 <p class="indent-wrapped-lines"><b>Inherited from <code>object</code></b>:
128 <code>__format__</code>,
129 <code>__hash__</code>,
130 <code>__reduce_ex__</code>,
131 <code>__sizeof__</code>,
132 <code>__subclasshook__</code>
137 <!-- ==================== PROPERTIES ==================== -->
138 <a name="section-Properties"></a>
139 <table class="summary" border="1" cellpadding="3"
140 cellspacing="0" width="100%" bgcolor="white">
141 <tr bgcolor="#70b0f0" class="table-header">
142 <td colspan="2" class="table-header">
143 <table border="0" cellpadding="0" cellspacing="0" width="100%">
145 <td align="left"><span class="table-header">Properties</span></td>
146 <td align="right" valign="top"
147 ><span class="options">[<a href="#section-Properties"
148 class="privatelink" onclick="toggle_private();"
149 >hide private</a>]</span></td>
155 <td colspan="2" class="summary">
156 <p class="indent-wrapped-lines"><b>Inherited from <code>exceptions.BaseException</code></b>:
160 <p class="indent-wrapped-lines"><b>Inherited from <code>object</code></b>:
161 <code>__class__</code>
166 <!-- ==================== NAVIGATION BAR ==================== -->
167 <table class="navbar" border="0" width="100%" cellpadding="0"
168 bgcolor="#a0c0ff" cellspacing="0">
171 <th> <a
172 href="lxml-module.html">Home</a> </th>
175 <th> <a
176 href="module-tree.html">Trees</a> </th>
179 <th> <a
180 href="identifier-index.html">Indices</a> </th>
183 <th> <a
184 href="help.html">Help</a> </th>
186 <!-- Project homepage -->
187 <th class="navbar" align="right" width="100%">
188 <table border="0" cellpadding="0" cellspacing="0">
189 <tr><th class="navbar" align="center"
190 ><a class="navbar" target="_top" href="/">lxml API</a></th>
194 <table border="0" cellpadding="0" cellspacing="0" width="100%%">
196 <td align="left" class="footer">
197 Generated by Epydoc 3.0.1
198 on Wed Jan 29 12:26:21 2020
200 <td align="right" class="footer">
201 <a target="mainFrame" href="http://epydoc.sourceforge.net"
202 >http://epydoc.sourceforge.net</a>
207 <script type="text/javascript">
209 // Private objects are initially displayed (because if
210 // javascript is turned off then we want them to be
211 // visible); but by default, we want to hide them. So hide
212 // them unless we have a cookie that says to show them.