7afa8b48a91d3c6b78ad54e1509e6eb9d27a1e4c
[platform/upstream/python-lxml.git] / doc / html / api / cssselect.parser.SelectorError-class.html
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">
5 <head>
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>
9 </head>
10
11 <body bgcolor="white" text="black" link="blue" vlink="#204080"
12       alink="#204080">
13 <!-- ==================== NAVIGATION BAR ==================== -->
14 <table class="navbar" border="0" width="100%" cellpadding="0"
15        bgcolor="#a0c0ff" cellspacing="0">
16   <tr valign="middle">
17   <!-- Home link -->
18       <th>&nbsp;&nbsp;&nbsp;<a
19         href="lxml-module.html">Home</a>&nbsp;&nbsp;&nbsp;</th>
20
21   <!-- Tree link -->
22       <th>&nbsp;&nbsp;&nbsp;<a
23         href="module-tree.html">Trees</a>&nbsp;&nbsp;&nbsp;</th>
24
25   <!-- Index link -->
26       <th>&nbsp;&nbsp;&nbsp;<a
27         href="identifier-index.html">Indices</a>&nbsp;&nbsp;&nbsp;</th>
28
29   <!-- Help link -->
30       <th>&nbsp;&nbsp;&nbsp;<a
31         href="help.html">Help</a>&nbsp;&nbsp;&nbsp;</th>
32
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>
38           </tr></table></th>
39   </tr>
40 </table>
41 <table width="100%" cellpadding="0" cellspacing="0">
42   <tr valign="top">
43     <td width="100%">
44       <span class="breadcrumbs">
45         cssselect ::
46         parser ::
47         SelectorError ::
48         Class&nbsp;SelectorError
49       </span>
50     </td>
51     <td>
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&nbsp;private</a>]</span></td></tr>
56         <tr><td align="right"><span class="options"
57             >[<a href="frames.html" target="_top">frames</a
58             >]&nbsp;|&nbsp;<a href="cssselect.parser.SelectorError-class.html"
59             target="_top">no&nbsp;frames</a>]</span></td></tr>
60       </table>
61     </td>
62   </tr>
63 </table>
64 <!-- ==================== CLASS DESCRIPTION ==================== -->
65 <h1 class="epydoc">Class SelectorError</h1><p class="nomargin-top"></p>
66 <pre class="base-tree">
67               object --+        
68                        |        
69 exceptions.BaseException --+    
70                            |    
71         exceptions.Exception --+
72                                |
73                               <strong class="uidshort">SelectorError</strong>
74 </pre>
75
76 <dl><dt>Known Subclasses:</dt>
77 <dd>
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>
80 </dd></dl>
81
82 <hr />
83 <pre class="literalblock">
84 Common parent for :class:`SelectorSyntaxError` and
85 :class:`ExpressionError`.
86
87 You can just use ``except SelectorError:`` when calling
88 :meth:`~GenericTranslator.css_to_xpath` and handle both exceptions types.
89
90 </pre>
91
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%">
99       <tr valign="top">
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>
105       </tr>
106     </table>
107   </td>
108 </tr>
109   <tr>
110     <td colspan="2" class="summary">
111     <p class="indent-wrapped-lines"><b>Inherited from <code>exceptions.Exception</code></b>:
112       <code>__init__</code>,
113       <code>__new__</code>
114       </p>
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>
126       </p>
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>
133       </p>
134     </td>
135   </tr>
136 </table>
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%">
144       <tr valign="top">
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>
150       </tr>
151     </table>
152   </td>
153 </tr>
154   <tr>
155     <td colspan="2" class="summary">
156     <p class="indent-wrapped-lines"><b>Inherited from <code>exceptions.BaseException</code></b>:
157       <code>args</code>,
158       <code>message</code>
159       </p>
160     <p class="indent-wrapped-lines"><b>Inherited from <code>object</code></b>:
161       <code>__class__</code>
162       </p>
163     </td>
164   </tr>
165 </table>
166 <!-- ==================== NAVIGATION BAR ==================== -->
167 <table class="navbar" border="0" width="100%" cellpadding="0"
168        bgcolor="#a0c0ff" cellspacing="0">
169   <tr valign="middle">
170   <!-- Home link -->
171       <th>&nbsp;&nbsp;&nbsp;<a
172         href="lxml-module.html">Home</a>&nbsp;&nbsp;&nbsp;</th>
173
174   <!-- Tree link -->
175       <th>&nbsp;&nbsp;&nbsp;<a
176         href="module-tree.html">Trees</a>&nbsp;&nbsp;&nbsp;</th>
177
178   <!-- Index link -->
179       <th>&nbsp;&nbsp;&nbsp;<a
180         href="identifier-index.html">Indices</a>&nbsp;&nbsp;&nbsp;</th>
181
182   <!-- Help link -->
183       <th>&nbsp;&nbsp;&nbsp;<a
184         href="help.html">Help</a>&nbsp;&nbsp;&nbsp;</th>
185
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>
191           </tr></table></th>
192   </tr>
193 </table>
194 <table border="0" cellpadding="0" cellspacing="0" width="100%%">
195   <tr>
196     <td align="left" class="footer">
197     Generated by Epydoc 3.0.1
198     on Wed Jan 29 12:26:21 2020
199     </td>
200     <td align="right" class="footer">
201       <a target="mainFrame" href="http://epydoc.sourceforge.net"
202         >http://epydoc.sourceforge.net</a>
203     </td>
204   </tr>
205 </table>
206
207 <script type="text/javascript">
208   <!--
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.
213   checkCookie();
214   // -->
215 </script>
216 </body>
217 </html>