1QXmlErrorHandler(3qt) QXmlErrorHandler(3qt)
2
3
4
6 QXmlErrorHandler - Interface to report errors in XML data
7
9 All the functions in this class are reentrant when Qt is built with
10 thread support.</p>
11
12 #include <qxml.h>
13
14 Inherited by QXmlDefaultHandler.
15
16 Public Members
17 virtual bool warning ( const QXmlParseException & exception ) = 0
18 virtual bool error ( const QXmlParseException & exception ) = 0
19 virtual bool fatalError ( const QXmlParseException & exception ) = 0
20 virtual QString errorString () = 0
21
23 The QXmlErrorHandler class provides an interface to report errors in
24 XML data.
25
26 If you want your application to report errors to the user or to perform
27 customized error handling, you should subclass this class.
28
29 You can set the error handler with QXmlReader::setErrorHandler().
30
31 Errors can be reported using warning(), error() and fatalError(), with
32 the error text being reported with errorString().
33
34 See also the Introduction to SAX2.
35
36 See also QXmlDTDHandler, QXmlDeclHandler, QXmlContentHandler,
37 QXmlEntityResolver, QXmlLexicalHandler, and XML.
38
41 virtual]
42 A reader might use this function to report a recoverable error. A
43 recoverable error corresponds to the definiton of "error" in section
44 1.2 of the XML 1.0 specification. Details of the error are stored in
45 exception.
46
47 The reader must continue to provide normal parsing events after
48 invoking this function.
49
50 If this function returns FALSE the reader stops parsing and reports an
51 error. The reader uses the function errorString() to get the error
52 message.
53
55 The reader calls this function to get an error string if any of the
56 handler functions returns FALSE.
57
59 [pure virtual]
60 A reader must use this function to report a non-recoverable error.
61 Details of the error are stored in exception.
62
63 If this function returns TRUE the reader might try to go on parsing and
64 reporting further errors; but no regular parsing events are reported.
65
67 virtual]
68 A reader might use this function to report a warning. Warnings are
69 conditions that are not errors or fatal errors as defined by the XML
70 1.0 specification. Details of the warning are stored in exception.
71
72 If this function returns FALSE the reader stops parsing and reports an
73 error. The reader uses the function errorString() to get the error
74 message.
75
76
78 http://doc.trolltech.com/qxmlerrorhandler.html
79 http://www.trolltech.com/faq/tech.html
80
82 Copyright 1992-2007 Trolltech ASA, http://www.trolltech.com. See the
83 license file included in the distribution for a complete license
84 statement.
85
87 Generated automatically from the source code.
88
90 If you find a bug in Qt, please report it as described in
91 http://doc.trolltech.com/bughowto.html. Good bug reports help us to
92 help you. Thank you.
93
94 The definitive Qt documentation is provided in HTML format; it is
95 located at $QTDIR/doc/html and can be read using Qt Assistant or with a
96 web browser. This man page is provided as a convenience for those users
97 who prefer man pages, although this format is not officially supported
98 by Trolltech.
99
100 If you find errors in this manual page, please report them to qt-
101 bugs@trolltech.com. Please include the name of the manual page
102 (qxmlerrorhandler.3qt) and the Qt version (3.3.8).
103
104
105
106Trolltech AS 2 February 2007 QXmlErrorHandler(3qt)