|
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.E4XML.XMLErrorHandler</title> |
|
6 <style> |
|
7 b'body {\n background:white;\n margin: 0em 1em 10em 1em;\n color: black;\n}\n\nh1 { color: white; background: #4FA4FF; }\nh2 { color: white; background: #4FA4FF; }\nh3 { color: white; background: #00557F; }\nh4 { color: white; background: #00557F; }\n \na { color: #AA5500; }\n' |
|
8 </style> |
|
9 </head> |
|
10 <body><a NAME="top" ID="top"></a> |
|
11 <h1>eric5.E4XML.XMLErrorHandler</h1> |
|
12 <p> |
|
13 Module implementing an error handler class. |
|
14 </p> |
|
15 <h3>Global Attributes</h3> |
|
16 <table> |
|
17 <tr><td>None</td></tr> |
|
18 </table> |
|
19 <h3>Classes</h3> |
|
20 <table> |
|
21 <tr> |
|
22 <td><a href="#XMLErrorHandler">XMLErrorHandler</a></td> |
|
23 <td>Class implementing an error handler class.</td> |
|
24 </tr><tr> |
|
25 <td><a href="#XMLFatalParseError">XMLFatalParseError</a></td> |
|
26 <td>Class implementing an exception for recoverable parse errors.</td> |
|
27 </tr><tr> |
|
28 <td><a href="#XMLParseError">XMLParseError</a></td> |
|
29 <td>Class implementing an exception for recoverable parse errors.</td> |
|
30 </tr> |
|
31 </table> |
|
32 <h3>Functions</h3> |
|
33 <table> |
|
34 <tr><td>None</td></tr> |
|
35 </table> |
|
36 <hr /><hr /> |
|
37 <a NAME="XMLErrorHandler" ID="XMLErrorHandler"></a> |
|
38 <h2>XMLErrorHandler</h2> |
|
39 <p> |
|
40 Class implementing an error handler class. |
|
41 </p> |
|
42 <h3>Derived from</h3> |
|
43 ErrorHandler |
|
44 <h3>Class Attributes</h3> |
|
45 <table> |
|
46 <tr><td>None</td></tr> |
|
47 </table> |
|
48 <h3>Methods</h3> |
|
49 <table> |
|
50 <tr> |
|
51 <td><a href="#XMLErrorHandler.__init__">XMLErrorHandler</a></td> |
|
52 <td>Constructor</td> |
|
53 </tr><tr> |
|
54 <td><a href="#XMLErrorHandler.error">error</a></td> |
|
55 <td>Public method to handle a recoverable error.</td> |
|
56 </tr><tr> |
|
57 <td><a href="#XMLErrorHandler.fatalError">fatalError</a></td> |
|
58 <td>Public method to handle a non-recoverable error.</td> |
|
59 </tr><tr> |
|
60 <td><a href="#XMLErrorHandler.getParseMessages">getParseMessages</a></td> |
|
61 <td>Public method to retrieve all messages.</td> |
|
62 </tr><tr> |
|
63 <td><a href="#XMLErrorHandler.showParseMessages">showParseMessages</a></td> |
|
64 <td>Public method to show the parse messages (if any) in a dialog.</td> |
|
65 </tr><tr> |
|
66 <td><a href="#XMLErrorHandler.warning">warning</a></td> |
|
67 <td>Public method to handle a warning.</td> |
|
68 </tr> |
|
69 </table> |
|
70 <a NAME="XMLErrorHandler.__init__" ID="XMLErrorHandler.__init__"></a> |
|
71 <h4>XMLErrorHandler (Constructor)</h4> |
|
72 <b>XMLErrorHandler</b>(<i></i>) |
|
73 <p> |
|
74 Constructor |
|
75 </p><a NAME="XMLErrorHandler.error" ID="XMLErrorHandler.error"></a> |
|
76 <h4>XMLErrorHandler.error</h4> |
|
77 <b>error</b>(<i>exception</i>) |
|
78 <p> |
|
79 Public method to handle a recoverable error. |
|
80 </p><dl> |
|
81 <dt><i>exception</i></dt> |
|
82 <dd> |
|
83 Exception object describing the error (SAXParseException) |
|
84 </dd> |
|
85 </dl><a NAME="XMLErrorHandler.fatalError" ID="XMLErrorHandler.fatalError"></a> |
|
86 <h4>XMLErrorHandler.fatalError</h4> |
|
87 <b>fatalError</b>(<i>exception</i>) |
|
88 <p> |
|
89 Public method to handle a non-recoverable error. |
|
90 </p><dl> |
|
91 <dt><i>exception</i></dt> |
|
92 <dd> |
|
93 Exception object describing the error (SAXParseException) |
|
94 </dd> |
|
95 </dl><dl> |
|
96 <dt>Raises <b>XMLFatalParseError</b>:</dt> |
|
97 <dd> |
|
98 a fatal parse error has occured |
|
99 </dd> |
|
100 </dl><a NAME="XMLErrorHandler.getParseMessages" ID="XMLErrorHandler.getParseMessages"></a> |
|
101 <h4>XMLErrorHandler.getParseMessages</h4> |
|
102 <b>getParseMessages</b>(<i></i>) |
|
103 <p> |
|
104 Public method to retrieve all messages. |
|
105 </p><dl> |
|
106 <dt>Returns:</dt> |
|
107 <dd> |
|
108 list of tuples of (message type, system id, line no, column no, |
|
109 message) |
|
110 </dd> |
|
111 </dl><a NAME="XMLErrorHandler.showParseMessages" ID="XMLErrorHandler.showParseMessages"></a> |
|
112 <h4>XMLErrorHandler.showParseMessages</h4> |
|
113 <b>showParseMessages</b>(<i></i>) |
|
114 <p> |
|
115 Public method to show the parse messages (if any) in a dialog. |
|
116 </p><a NAME="XMLErrorHandler.warning" ID="XMLErrorHandler.warning"></a> |
|
117 <h4>XMLErrorHandler.warning</h4> |
|
118 <b>warning</b>(<i>exception</i>) |
|
119 <p> |
|
120 Public method to handle a warning. |
|
121 </p><dl> |
|
122 <dt><i>exception</i></dt> |
|
123 <dd> |
|
124 Exception object describing the error (SAXParseException) |
|
125 </dd> |
|
126 </dl> |
|
127 <div align="right"><a href="#top">Up</a></div> |
|
128 <hr /><hr /> |
|
129 <a NAME="XMLFatalParseError" ID="XMLFatalParseError"></a> |
|
130 <h2>XMLFatalParseError</h2> |
|
131 <p> |
|
132 Class implementing an exception for recoverable parse errors. |
|
133 </p> |
|
134 <h3>Derived from</h3> |
|
135 XMLParseError |
|
136 <h3>Class Attributes</h3> |
|
137 <table> |
|
138 <tr><td>None</td></tr> |
|
139 </table> |
|
140 <h3>Methods</h3> |
|
141 <table> |
|
142 <tr><td>None</td></tr> |
|
143 </table> |
|
144 |
|
145 <div align="right"><a href="#top">Up</a></div> |
|
146 <hr /><hr /> |
|
147 <a NAME="XMLParseError" ID="XMLParseError"></a> |
|
148 <h2>XMLParseError</h2> |
|
149 <p> |
|
150 Class implementing an exception for recoverable parse errors. |
|
151 </p> |
|
152 <h3>Derived from</h3> |
|
153 Exception |
|
154 <h3>Class Attributes</h3> |
|
155 <table> |
|
156 <tr><td>None</td></tr> |
|
157 </table> |
|
158 <h3>Methods</h3> |
|
159 <table> |
|
160 <tr><td>None</td></tr> |
|
161 </table> |
|
162 |
|
163 <div align="right"><a href="#top">Up</a></div> |
|
164 <hr /> |
|
165 </body></html> |