1
<?xml version="1.0" encoding="iso-8859-1"?>
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>pyparsing.pyparsing.ParseBaseException</title>
7
<link rel="stylesheet" href="epydoc.css" type="text/css"></link>
9
<body bgcolor="white" text="black" link="blue" vlink="#204080"
12
<!-- =========== START OF NAVBAR =========== -->
13
<table class="navbar" border="0" width="100%" cellpadding="0" bgcolor="#a0c0ff" cellspacing="0">
15
<th class="navbar"> <a class="navbar" href="pyparsing.pyparsing-module.html">Home</a> </th>
16
<th class="navbar"> <a class="navbar" href="trees.html">Trees</a> </th>
17
<th class="navbar"> <a class="navbar" href="indices.html">Index</a> </th>
18
<th class="navbar"> <a class="navbar" href="help.html">Help</a> </th>
19
<th class="navbar" align="right" width="100%">
20
<table border="0" cellpadding="0" cellspacing="0">
21
<tr><th class="navbar" align="center">
24
</p></th></tr></table>
28
<table width="100%" cellpadding="0" cellspacing="0">
31
<font size="-1"><b class="breadcrumbs">
32
Package pyparsing ::
33
<a href="pyparsing.pyparsing-module.html">Module pyparsing</a> ::
34
Class ParseBaseException
37
<td><table cellpadding="0" cellspacing="0">
38
<tr><td align="right"><font size="-2">[<a href="frames.html"target="_top">frames</a> | <a href="pyparsing.pyparsing.ParseBaseException-class.html" target="_top">no frames</a>]</font></td></tr>
42
<!-- =========== START OF CLASS DESCRIPTION =========== -->
43
<h2 class="class">Type ParseBaseException</h2>
45
<pre class="base-tree">
46
<a href="__builtin__.object-class.html"><code>object</code></a> --+
48
<a href="exceptions.BaseException-class.html"><code>BaseException</code></a> --+
50
<a href="exceptions.Exception-class.html"><code>Exception</code></a> --+
52
<b>ParseBaseException</b>
55
<dl><dt><b>Known Subclasses:</b></dt>
57
<a href="pyparsing.pyparsing.ParseException-class.html"><code>ParseException</code></a>,
58
<a href="pyparsing.pyparsing.ParseFatalException-class.html"><code>ParseFatalException</code></a></dd></dl>
62
base exception class for all parsing runtime exceptions
66
<!-- =========== START OF METHOD SUMMARY =========== -->
67
<table class="summary" border="1" cellpadding="3" cellspacing="0" width="100%" bgcolor="white">
68
<tr bgcolor="#70b0f0" class="summary">
69
<th colspan="2">Method Summary</th></tr>
70
<tr><td align="right" valign="top" width="15%"><font size="-1"> </font></td>
71
<td><code><a name="__init__"></a><span class="summary-sig"><span class="summary-sig-name">__init__</span>(<span class=summary-sig-arg>self</span>,
72
<span class=summary-sig-arg>pstr</span>,
73
<span class=summary-sig-arg>loc</span>,
74
<span class=summary-sig-arg>msg</span>,
75
<span class=summary-sig-arg>elem</span>)</span></code>
77
<tr><td align="right" valign="top" width="15%"><font size="-1"> </font></td>
78
<td><code><span class="summary-sig"><a href="pyparsing.pyparsing.ParseBaseException-class.html#__getattr__" class="summary-sig-name"><code>__getattr__</code></a>(<span class=summary-sig-arg>self</span>,
79
<span class=summary-sig-arg>aname</span>)</span></code>
81
supported attributes by name are:</td></tr>
82
<tr><td align="right" valign="top" width="15%"><font size="-1"> </font></td>
83
<td><code><a name="__repr__"></a><span class="summary-sig"><span class="summary-sig-name">__repr__</span>(<span class=summary-sig-arg>self</span>)</span></code>
85
<tr><td align="right" valign="top" width="15%"><font size="-1"> </font></td>
86
<td><code><a name="__str__"></a><span class="summary-sig"><span class="summary-sig-name">__str__</span>(<span class=summary-sig-arg>self</span>)</span></code>
88
<tr><td align="right" valign="top" width="15%"><font size="-1"> </font></td>
89
<td><code><span class="summary-sig"><a href="pyparsing.pyparsing.ParseBaseException-class.html#markInputline" class="summary-sig-name"><code>markInputline</code></a>(<span class=summary-sig-arg>self</span>,
90
<span class=summary-sig-arg>markerString</span>)</span></code>
92
Extracts the exception line from the input string, and marks the
93
location of the exception with a special symbol.</td></tr>
95
<b>Inherited from <a href="exceptions.Exception-class.html"><code>Exception</code></a>:</b>
96
<a href="exceptions.Exception-class.html#__new__"><code>__new__</code></a>
98
<b>Inherited from <a href="exceptions.BaseException-class.html"><code>BaseException</code></a>:</b>
99
<a href="exceptions.BaseException-class.html#__delattr__"><code>__delattr__</code></a>,
100
<a href="exceptions.BaseException-class.html#__getattribute__"><code>__getattribute__</code></a>,
101
<a href="exceptions.BaseException-class.html#__getitem__"><code>__getitem__</code></a>,
102
<a href="exceptions.BaseException-class.html#__getslice__"><code>__getslice__</code></a>,
103
<a href="exceptions.BaseException-class.html#__reduce__"><code>__reduce__</code></a>,
104
<a href="exceptions.BaseException-class.html#__setattr__"><code>__setattr__</code></a>,
105
<a href="exceptions.BaseException-class.html#__setstate__"><code>__setstate__</code></a>
107
<b>Inherited from <a href="__builtin__.object-class.html"><code>object</code></a>:</b>
108
<a href="__builtin__.object-class.html#__hash__"><code>__hash__</code></a>,
109
<a href="__builtin__.object-class.html#__reduce_ex__"><code>__reduce_ex__</code></a>
114
<!-- =========== START OF CLASS VARIABLE SUMMARY =========== -->
115
<table class="summary" border="1" cellpadding="3" cellspacing="0" width="100%" bgcolor="white">
116
<tr bgcolor="#70b0f0" class="summary">
117
<th colspan="2">Class Variable Summary</th></tr>
118
<tr><td align="right" valign="top" width="15%"><font size="-1"><code>tuple</code></font></td>
119
<td><b><a href="pyparsing.pyparsing.ParseBaseException-class.html#__slots__"><code>__slots__</code></a></b> = <span title="('loc', 'msg', 'pstr', 'parserElement')"><code>('loc', 'msg', 'pstr', 'parserElement') </code>
121
<tr><td align="right" valign="top" width="15%"><font size="-1"><code>member_descriptor</code></font></td>
122
<td><b><a href="pyparsing.pyparsing.ParseBaseException-class.html#loc"><code>loc</code></a></b> = <span title="<member 'loc' of 'ParseBaseException' objects>"><code><member 'loc' of 'ParseBaseException' objects> </code>
124
<tr><td align="right" valign="top" width="15%"><font size="-1"><code>member_descriptor</code></font></td>
125
<td><b><a href="pyparsing.pyparsing.ParseBaseException-class.html#msg"><code>msg</code></a></b> = <span title="<member 'msg' of 'ParseBaseException' objects>"><code><member 'msg' of 'ParseBaseException' objects> </code>
127
<tr><td align="right" valign="top" width="15%"><font size="-1"><code>member_descriptor</code></font></td>
128
<td><b><a href="pyparsing.pyparsing.ParseBaseException-class.html#parserElement"><code>parserElement</code></a></b> = <span title="<member 'parserElement' of 'ParseBaseException' objects>"><code><member 'parserElement' of 'ParseBaseExc<span class="variable-ellipsis">...</span></code>
130
<tr><td align="right" valign="top" width="15%"><font size="-1"><code>member_descriptor</code></font></td>
131
<td><b><a href="pyparsing.pyparsing.ParseBaseException-class.html#pstr"><code>pstr</code></a></b> = <span title="<member 'pstr' of 'ParseBaseException' objects>"><code><member 'pstr' of 'ParseBaseException' objects> </code>
134
<b>Inherited from <a href="exceptions.BaseException-class.html"><code>BaseException</code></a>:</b>
135
<a href="exceptions.BaseException-class.html#args"><code>args</code></a>,
136
<a href="exceptions.BaseException-class.html#message"><code>message</code></a>
141
<!-- =========== START OF METHOD DETAILS =========== -->
142
<table class="details" border="1" cellpadding="3" cellspacing="0" width="100%" bgcolor="white">
143
<tr bgcolor="#70b0f0" class="details">
144
<th colspan="2">Method Details</th></tr>
147
<a name="__getattr__"></a>
148
<table width="100%" class="func-details" bgcolor="#e0e0e0"><tr><td>
149
<h3><span class="sig"><span class="sig-name">__getattr__</span>(<span class=sig-arg>self</span>,
150
<span class=sig-arg>aname</span>)</span>
151
<br /><i>(Qualification operator)</i>
153
supported attributes by name are:
156
lineno - returns the line number of the exception text
159
col - returns the column number of the exception text
162
line - returns the line containing the exception text
169
<a name="markInputline"></a>
170
<table width="100%" class="func-details" bgcolor="#e0e0e0"><tr><td>
171
<h3><span class="sig"><span class="sig-name">markInputline</span>(<span class=sig-arg>self</span>,
172
<span class=sig-arg>markerString</span>=<span class=sig-default>'>!<'</span>)</span>
174
Extracts the exception line from the input string, and marks the
175
location of the exception with a special symbol.
182
<!-- =========== START OF CLASS VARIABLE DETAILS =========== -->
183
<table class="details" border="1" cellpadding="3" cellspacing="0" width="100%" bgcolor="white">
184
<tr bgcolor="#70b0f0" class="details">
185
<th colspan="2">Class Variable Details</th></tr>
187
<table width="100%" class="var-details" bgcolor="#e0e0e0"><tr><td>
188
<a name="__slots__"></a>
194
<dt><b>Type:</b></dt>
199
<span title="('loc', 'msg', 'pstr', 'parserElement')"> <dt><b>Value:</b></dt>
201
<pre class="variable">
202
('loc', 'msg', 'pstr', 'parserElement') </pre>
203
</td></tr></table></dd>
206
</dl></td></tr></table>
207
<table width="100%" class="var-details" bgcolor="#e0e0e0"><tr><td>
214
<dt><b>Type:</b></dt>
216
<code>member_descriptor</code>
219
<span title="<member 'loc' of 'ParseBaseException' objects>"> <dt><b>Value:</b></dt>
221
<pre class="variable">
222
<member 'loc' of 'ParseBaseException' objects> </pre>
223
</td></tr></table></dd>
226
</dl></td></tr></table>
227
<table width="100%" class="var-details" bgcolor="#e0e0e0"><tr><td>
234
<dt><b>Type:</b></dt>
236
<code>member_descriptor</code>
239
<span title="<member 'msg' of 'ParseBaseException' objects>"> <dt><b>Value:</b></dt>
241
<pre class="variable">
242
<member 'msg' of 'ParseBaseException' objects> </pre>
243
</td></tr></table></dd>
246
</dl></td></tr></table>
247
<table width="100%" class="var-details" bgcolor="#e0e0e0"><tr><td>
248
<a name="parserElement"></a>
249
<h3>parserElement</h3>
254
<dt><b>Type:</b></dt>
256
<code>member_descriptor</code>
259
<span title="<member 'parserElement' of 'ParseBaseException' objects>"> <dt><b>Value:</b></dt>
261
<pre class="variable">
262
<member 'parserElement' of 'ParseBaseException' objects> </pre>
263
</td></tr></table></dd>
266
</dl></td></tr></table>
267
<table width="100%" class="var-details" bgcolor="#e0e0e0"><tr><td>
274
<dt><b>Type:</b></dt>
276
<code>member_descriptor</code>
279
<span title="<member 'pstr' of 'ParseBaseException' objects>"> <dt><b>Value:</b></dt>
281
<pre class="variable">
282
<member 'pstr' of 'ParseBaseException' objects> </pre>
283
</td></tr></table></dd>
286
</dl></td></tr></table>
290
<!-- =========== START OF NAVBAR =========== -->
291
<table class="navbar" border="0" width="100%" cellpadding="0" bgcolor="#a0c0ff" cellspacing="0">
293
<th class="navbar"> <a class="navbar" href="pyparsing.pyparsing-module.html">Home</a> </th>
294
<th class="navbar"> <a class="navbar" href="trees.html">Trees</a> </th>
295
<th class="navbar"> <a class="navbar" href="indices.html">Index</a> </th>
296
<th class="navbar"> <a class="navbar" href="help.html">Help</a> </th>
297
<th class="navbar" align="right" width="100%">
298
<table border="0" cellpadding="0" cellspacing="0">
299
<tr><th class="navbar" align="center">
302
</p></th></tr></table>
307
<table border="0" cellpadding="0" cellspacing="0" width="100%">
309
<td align="left"><font size="-2">Generated by Epydoc 2.1 on Sun Feb 10 18:01:06 2008</font></td>
310
<td align="right"><a href="http://epydoc.sourceforge.net"
311
><font size="-2">http://epydoc.sf.net</font></a></td>