Documentation/Source/eric5.E5XML.XMLErrorHandler.html

changeset 609
463fc2891cbf
parent 608
d8fea1e76975
child 613
5a6ee2af8ec0
equal deleted inserted replaced
608:d8fea1e76975 609:463fc2891cbf
1 <?xml version="1.0" encoding="utf-8"?>
2 <!DOCTYPE html PUBLIC '-//W3C//DTD XHTML 1.0 Strict//EN'
3 'http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd'>
4 <html><head>
5 <title>eric5.E5XML.XMLErrorHandler</title>
6 <style>
7 body {
8 background: #EDECE6;
9 margin: 0em 1em 10em 1em;
10 color: black;
11 }
12
13 h1 { color: white; background: #85774A; }
14 h2 { color: white; background: #85774A; }
15 h3 { color: white; background: #9D936E; }
16 h4 { color: white; background: #9D936E; }
17
18 a { color: #BA6D36; }
19
20 </style>
21 </head>
22 <body><a NAME="top" ID="top"></a>
23 <h1>eric5.E5XML.XMLErrorHandler</h1>
24 <p>
25 Module implementing an error handler class.
26 </p>
27 <h3>Global Attributes</h3>
28 <table>
29 <tr><td>None</td></tr>
30 </table>
31 <h3>Classes</h3>
32 <table>
33 <tr>
34 <td><a href="#XMLErrorHandler">XMLErrorHandler</a></td>
35 <td>Class implementing an error handler class.</td>
36 </tr><tr>
37 <td><a href="#XMLFatalParseError">XMLFatalParseError</a></td>
38 <td>Class implementing an exception for recoverable parse errors.</td>
39 </tr><tr>
40 <td><a href="#XMLParseError">XMLParseError</a></td>
41 <td>Class implementing an exception for recoverable parse errors.</td>
42 </tr>
43 </table>
44 <h3>Functions</h3>
45 <table>
46 <tr><td>None</td></tr>
47 </table>
48 <hr /><hr />
49 <a NAME="XMLErrorHandler" ID="XMLErrorHandler"></a>
50 <h2>XMLErrorHandler</h2>
51 <p>
52 Class implementing an error handler class.
53 </p>
54 <h3>Derived from</h3>
55 ErrorHandler
56 <h3>Class Attributes</h3>
57 <table>
58 <tr><td>None</td></tr>
59 </table>
60 <h3>Methods</h3>
61 <table>
62 <tr>
63 <td><a href="#XMLErrorHandler.__init__">XMLErrorHandler</a></td>
64 <td>Constructor</td>
65 </tr><tr>
66 <td><a href="#XMLErrorHandler.error">error</a></td>
67 <td>Public method to handle a recoverable error.</td>
68 </tr><tr>
69 <td><a href="#XMLErrorHandler.fatalError">fatalError</a></td>
70 <td>Public method to handle a non-recoverable error.</td>
71 </tr><tr>
72 <td><a href="#XMLErrorHandler.getParseMessages">getParseMessages</a></td>
73 <td>Public method to retrieve all messages.</td>
74 </tr><tr>
75 <td><a href="#XMLErrorHandler.showParseMessages">showParseMessages</a></td>
76 <td>Public method to show the parse messages (if any) in a dialog.</td>
77 </tr><tr>
78 <td><a href="#XMLErrorHandler.warning">warning</a></td>
79 <td>Public method to handle a warning.</td>
80 </tr>
81 </table>
82 <a NAME="XMLErrorHandler.__init__" ID="XMLErrorHandler.__init__"></a>
83 <h4>XMLErrorHandler (Constructor)</h4>
84 <b>XMLErrorHandler</b>(<i></i>)
85 <p>
86 Constructor
87 </p><a NAME="XMLErrorHandler.error" ID="XMLErrorHandler.error"></a>
88 <h4>XMLErrorHandler.error</h4>
89 <b>error</b>(<i>exception</i>)
90 <p>
91 Public method to handle a recoverable error.
92 </p><dl>
93 <dt><i>exception</i></dt>
94 <dd>
95 Exception object describing the error (SAXParseException)
96 </dd>
97 </dl><a NAME="XMLErrorHandler.fatalError" ID="XMLErrorHandler.fatalError"></a>
98 <h4>XMLErrorHandler.fatalError</h4>
99 <b>fatalError</b>(<i>exception</i>)
100 <p>
101 Public method to handle a non-recoverable error.
102 </p><dl>
103 <dt><i>exception</i></dt>
104 <dd>
105 Exception object describing the error (SAXParseException)
106 </dd>
107 </dl><dl>
108 <dt>Raises <b>XMLFatalParseError</b>:</dt>
109 <dd>
110 a fatal parse error has occured
111 </dd>
112 </dl><a NAME="XMLErrorHandler.getParseMessages" ID="XMLErrorHandler.getParseMessages"></a>
113 <h4>XMLErrorHandler.getParseMessages</h4>
114 <b>getParseMessages</b>(<i></i>)
115 <p>
116 Public method to retrieve all messages.
117 </p><dl>
118 <dt>Returns:</dt>
119 <dd>
120 list of tuples of (message type, system id, line no, column no,
121 message)
122 </dd>
123 </dl><a NAME="XMLErrorHandler.showParseMessages" ID="XMLErrorHandler.showParseMessages"></a>
124 <h4>XMLErrorHandler.showParseMessages</h4>
125 <b>showParseMessages</b>(<i></i>)
126 <p>
127 Public method to show the parse messages (if any) in a dialog.
128 </p><a NAME="XMLErrorHandler.warning" ID="XMLErrorHandler.warning"></a>
129 <h4>XMLErrorHandler.warning</h4>
130 <b>warning</b>(<i>exception</i>)
131 <p>
132 Public method to handle a warning.
133 </p><dl>
134 <dt><i>exception</i></dt>
135 <dd>
136 Exception object describing the error (SAXParseException)
137 </dd>
138 </dl>
139 <div align="right"><a href="#top">Up</a></div>
140 <hr /><hr />
141 <a NAME="XMLFatalParseError" ID="XMLFatalParseError"></a>
142 <h2>XMLFatalParseError</h2>
143 <p>
144 Class implementing an exception for recoverable parse errors.
145 </p>
146 <h3>Derived from</h3>
147 XMLParseError
148 <h3>Class Attributes</h3>
149 <table>
150 <tr><td>None</td></tr>
151 </table>
152 <h3>Methods</h3>
153 <table>
154 <tr><td>None</td></tr>
155 </table>
156
157 <div align="right"><a href="#top">Up</a></div>
158 <hr /><hr />
159 <a NAME="XMLParseError" ID="XMLParseError"></a>
160 <h2>XMLParseError</h2>
161 <p>
162 Class implementing an exception for recoverable parse errors.
163 </p>
164 <h3>Derived from</h3>
165 Exception
166 <h3>Class Attributes</h3>
167 <table>
168 <tr><td>None</td></tr>
169 </table>
170 <h3>Methods</h3>
171 <table>
172 <tr><td>None</td></tr>
173 </table>
174
175 <div align="right"><a href="#top">Up</a></div>
176 <hr />
177 </body></html>

eric ide

mercurial