20 </style> |
20 </style> |
21 </head> |
21 </head> |
22 <body><a NAME="top" ID="top"></a> |
22 <body><a NAME="top" ID="top"></a> |
23 <h1>eric5.E5XML.XMLErrorHandler</h1> |
23 <h1>eric5.E5XML.XMLErrorHandler</h1> |
24 <p> |
24 <p> |
25 Module implementing an error handler class. |
25 Module implementing an error handler class. |
26 </p> |
26 </p> |
27 <h3>Global Attributes</h3> |
27 <h3>Global Attributes</h3> |
28 <table> |
28 <table> |
29 <tr><td>None</td></tr> |
29 <tr><td>None</td></tr> |
30 </table> |
30 </table> |
31 <h3>Classes</h3> |
31 <h3>Classes</h3> |
32 <table> |
32 <table> |
33 <tr> |
33 <tr> |
34 <td><a href="#XMLErrorHandler">XMLErrorHandler</a></td> |
34 <td><a href="#XMLErrorHandler">XMLErrorHandler</a></td> |
35 <td>Class implementing an error handler class.</td> |
35 <td>Class implementing an error handler class.</td> |
36 </tr><tr> |
36 </tr><tr> |
37 <td><a href="#XMLFatalParseError">XMLFatalParseError</a></td> |
37 <td><a href="#XMLFatalParseError">XMLFatalParseError</a></td> |
38 <td>Class implementing an exception for recoverable parse errors.</td> |
38 <td>Class implementing an exception for recoverable parse errors.</td> |
39 </tr><tr> |
39 </tr><tr> |
40 <td><a href="#XMLParseError">XMLParseError</a></td> |
40 <td><a href="#XMLParseError">XMLParseError</a></td> |
41 <td>Class implementing an exception for recoverable parse errors.</td> |
41 <td>Class implementing an exception for recoverable parse errors.</td> |
42 </tr> |
42 </tr> |
43 </table> |
43 </table> |
44 <h3>Functions</h3> |
44 <h3>Functions</h3> |
45 <table> |
45 <table> |
46 <tr><td>None</td></tr> |
46 <tr><td>None</td></tr> |
47 </table> |
47 </table> |
48 <hr /><hr /> |
48 <hr /><hr /> |
49 <a NAME="XMLErrorHandler" ID="XMLErrorHandler"></a> |
49 <a NAME="XMLErrorHandler" ID="XMLErrorHandler"></a> |
50 <h2>XMLErrorHandler</h2> |
50 <h2>XMLErrorHandler</h2> |
51 <p> |
51 <p> |
52 Class implementing an error handler class. |
52 Class implementing an error handler class. |
53 </p> |
53 </p> |
54 <h3>Derived from</h3> |
54 <h3>Derived from</h3> |
55 ErrorHandler |
55 ErrorHandler |
56 <h3>Class Attributes</h3> |
56 <h3>Class Attributes</h3> |
57 <table> |
57 <table> |
59 </table> |
59 </table> |
60 <h3>Methods</h3> |
60 <h3>Methods</h3> |
61 <table> |
61 <table> |
62 <tr> |
62 <tr> |
63 <td><a href="#XMLErrorHandler.__init__">XMLErrorHandler</a></td> |
63 <td><a href="#XMLErrorHandler.__init__">XMLErrorHandler</a></td> |
64 <td>Constructor</td> |
64 <td>Constructor</td> |
65 </tr><tr> |
65 </tr><tr> |
66 <td><a href="#XMLErrorHandler.error">error</a></td> |
66 <td><a href="#XMLErrorHandler.error">error</a></td> |
67 <td>Public method to handle a recoverable error.</td> |
67 <td>Public method to handle a recoverable error.</td> |
68 </tr><tr> |
68 </tr><tr> |
69 <td><a href="#XMLErrorHandler.fatalError">fatalError</a></td> |
69 <td><a href="#XMLErrorHandler.fatalError">fatalError</a></td> |
70 <td>Public method to handle a non-recoverable error.</td> |
70 <td>Public method to handle a non-recoverable error.</td> |
71 </tr><tr> |
71 </tr><tr> |
72 <td><a href="#XMLErrorHandler.getParseMessages">getParseMessages</a></td> |
72 <td><a href="#XMLErrorHandler.getParseMessages">getParseMessages</a></td> |
73 <td>Public method to retrieve all messages.</td> |
73 <td>Public method to retrieve all messages.</td> |
74 </tr><tr> |
74 </tr><tr> |
75 <td><a href="#XMLErrorHandler.showParseMessages">showParseMessages</a></td> |
75 <td><a href="#XMLErrorHandler.showParseMessages">showParseMessages</a></td> |
76 <td>Public method to show the parse messages (if any) in a dialog.</td> |
76 <td>Public method to show the parse messages (if any) in a dialog.</td> |
77 </tr><tr> |
77 </tr><tr> |
78 <td><a href="#XMLErrorHandler.warning">warning</a></td> |
78 <td><a href="#XMLErrorHandler.warning">warning</a></td> |
79 <td>Public method to handle a warning.</td> |
79 <td>Public method to handle a warning.</td> |
80 </tr> |
80 </tr> |
81 </table> |
81 </table> |
82 <a NAME="XMLErrorHandler.__init__" ID="XMLErrorHandler.__init__"></a> |
82 <a NAME="XMLErrorHandler.__init__" ID="XMLErrorHandler.__init__"></a> |
83 <h4>XMLErrorHandler (Constructor)</h4> |
83 <h4>XMLErrorHandler (Constructor)</h4> |
84 <b>XMLErrorHandler</b>(<i></i>) |
84 <b>XMLErrorHandler</b>(<i></i>) |
85 <p> |
85 <p> |
86 Constructor |
86 Constructor |
87 </p><a NAME="XMLErrorHandler.error" ID="XMLErrorHandler.error"></a> |
87 </p><a NAME="XMLErrorHandler.error" ID="XMLErrorHandler.error"></a> |
88 <h4>XMLErrorHandler.error</h4> |
88 <h4>XMLErrorHandler.error</h4> |
89 <b>error</b>(<i>exception</i>) |
89 <b>error</b>(<i>exception</i>) |
90 <p> |
90 <p> |
91 Public method to handle a recoverable error. |
91 Public method to handle a recoverable error. |
92 </p><dl> |
92 </p><dl> |
93 <dt><i>exception</i></dt> |
93 <dt><i>exception</i></dt> |
94 <dd> |
94 <dd> |
95 Exception object describing the error (SAXParseException) |
95 Exception object describing the error (SAXParseException) |
96 </dd> |
96 </dd> |
97 </dl><a NAME="XMLErrorHandler.fatalError" ID="XMLErrorHandler.fatalError"></a> |
97 </dl><a NAME="XMLErrorHandler.fatalError" ID="XMLErrorHandler.fatalError"></a> |
98 <h4>XMLErrorHandler.fatalError</h4> |
98 <h4>XMLErrorHandler.fatalError</h4> |
99 <b>fatalError</b>(<i>exception</i>) |
99 <b>fatalError</b>(<i>exception</i>) |
100 <p> |
100 <p> |
101 Public method to handle a non-recoverable error. |
101 Public method to handle a non-recoverable error. |
102 </p><dl> |
102 </p><dl> |
103 <dt><i>exception</i></dt> |
103 <dt><i>exception</i></dt> |
104 <dd> |
104 <dd> |
105 Exception object describing the error (SAXParseException) |
105 Exception object describing the error (SAXParseException) |
106 </dd> |
106 </dd> |
107 </dl><dl> |
107 </dl><dl> |
108 <dt>Raises <b>XMLFatalParseError</b>:</dt> |
108 <dt>Raises <b>XMLFatalParseError</b>:</dt> |
109 <dd> |
109 <dd> |
110 a fatal parse error has occured |
110 a fatal parse error has occured |
111 </dd> |
111 </dd> |
112 </dl><a NAME="XMLErrorHandler.getParseMessages" ID="XMLErrorHandler.getParseMessages"></a> |
112 </dl><a NAME="XMLErrorHandler.getParseMessages" ID="XMLErrorHandler.getParseMessages"></a> |
113 <h4>XMLErrorHandler.getParseMessages</h4> |
113 <h4>XMLErrorHandler.getParseMessages</h4> |
114 <b>getParseMessages</b>(<i></i>) |
114 <b>getParseMessages</b>(<i></i>) |
115 <p> |
115 <p> |
116 Public method to retrieve all messages. |
116 Public method to retrieve all messages. |
117 </p><dl> |
117 </p><dl> |
118 <dt>Returns:</dt> |
118 <dt>Returns:</dt> |
119 <dd> |
119 <dd> |
120 list of tuples of (message type, system id, line no, column no, |
120 list of tuples of (message type, system id, line no, column no, |
121 message) |
121 message) |
122 </dd> |
122 </dd> |
123 </dl><a NAME="XMLErrorHandler.showParseMessages" ID="XMLErrorHandler.showParseMessages"></a> |
123 </dl><a NAME="XMLErrorHandler.showParseMessages" ID="XMLErrorHandler.showParseMessages"></a> |
124 <h4>XMLErrorHandler.showParseMessages</h4> |
124 <h4>XMLErrorHandler.showParseMessages</h4> |
125 <b>showParseMessages</b>(<i></i>) |
125 <b>showParseMessages</b>(<i></i>) |
126 <p> |
126 <p> |
127 Public method to show the parse messages (if any) in a dialog. |
127 Public method to show the parse messages (if any) in a dialog. |
128 </p><a NAME="XMLErrorHandler.warning" ID="XMLErrorHandler.warning"></a> |
128 </p><a NAME="XMLErrorHandler.warning" ID="XMLErrorHandler.warning"></a> |
129 <h4>XMLErrorHandler.warning</h4> |
129 <h4>XMLErrorHandler.warning</h4> |
130 <b>warning</b>(<i>exception</i>) |
130 <b>warning</b>(<i>exception</i>) |
131 <p> |
131 <p> |
132 Public method to handle a warning. |
132 Public method to handle a warning. |
133 </p><dl> |
133 </p><dl> |
134 <dt><i>exception</i></dt> |
134 <dt><i>exception</i></dt> |
135 <dd> |
135 <dd> |
136 Exception object describing the error (SAXParseException) |
136 Exception object describing the error (SAXParseException) |
137 </dd> |
137 </dd> |
138 </dl> |
138 </dl> |
139 <div align="right"><a href="#top">Up</a></div> |
139 <div align="right"><a href="#top">Up</a></div> |
140 <hr /><hr /> |
140 <hr /><hr /> |
141 <a NAME="XMLFatalParseError" ID="XMLFatalParseError"></a> |
141 <a NAME="XMLFatalParseError" ID="XMLFatalParseError"></a> |
142 <h2>XMLFatalParseError</h2> |
142 <h2>XMLFatalParseError</h2> |
143 <p> |
143 <p> |
144 Class implementing an exception for recoverable parse errors. |
144 Class implementing an exception for recoverable parse errors. |
145 </p> |
145 </p> |
146 <h3>Derived from</h3> |
146 <h3>Derived from</h3> |
147 XMLParseError |
147 XMLParseError |
148 <h3>Class Attributes</h3> |
148 <h3>Class Attributes</h3> |
149 <table> |
149 <table> |