Eneboo - Documentación para desarrolladores
Métodos públicos
Referencia de la Clase QXmlErrorHandler

The QXmlErrorHandler class provides an interface to report errors in XML data.XMLIf you want your application to report errors to the user or to perform customized error handling, you should subclass this class. Más...

#include <qxml.h>

Diagrama de herencias de QXmlErrorHandler
QXmlDefaultHandler QXmlDefaultHandler QDomHandler QphHandler TsHandler TsHandler UiHandler QDomHandler QphHandler TsHandler TsHandler UiHandler

Lista de todos los miembros.

Métodos públicos

virtual bool warning (const QXmlParseException &exception)=0
virtual bool error (const QXmlParseException &exception)=0
virtual bool fatalError (const QXmlParseException &exception)=0
virtual QString errorString ()=0
virtual bool warning (const QXmlParseException &exception)=0
virtual bool error (const QXmlParseException &exception)=0
virtual bool fatalError (const QXmlParseException &exception)=0
virtual QString errorString ()=0

Descripción detallada

The QXmlErrorHandler class provides an interface to report errors in XML data.

XML

If you want your application to report errors to the user or to perform customized error handling, you should subclass this class.

You can set the error handler with QXmlReader::setErrorHandler().

Errors can be reported using warning(), error() and fatalError(), with the error text being reported with errorString().

See also the Introduction to SAX2.

Ver también:
QXmlDTDHandler QXmlDeclHandler QXmlContentHandler QXmlEntityResolver QXmlLexicalHandler

Documentación de las funciones miembro

bool QXmlErrorHandler::error ( const QXmlParseException exception) [pure virtual]

A reader might use this function to report a recoverable error. A recoverable error corresponds to the definiton of "error" in section 1.2 of the XML 1.0 specification. Details of the error are stored in exception.

The reader must continue to provide normal parsing events after invoking this function.

If this function returns FALSE the reader stops parsing and reports an error. The reader uses the function errorString() to get the error message.

Implementado en QXmlDefaultHandler y QXmlDefaultHandler.

virtual bool QXmlErrorHandler::error ( const QXmlParseException exception) [pure virtual]
QString QXmlErrorHandler::errorString ( ) [pure virtual]

The reader calls this function to get an error string if any of the handler functions returns FALSE.

Implementado en QXmlDefaultHandler y QXmlDefaultHandler.

virtual QString QXmlErrorHandler::errorString ( ) [pure virtual]
virtual bool QXmlErrorHandler::fatalError ( const QXmlParseException exception) [pure virtual]
bool QXmlErrorHandler::fatalError ( const QXmlParseException exception) [pure virtual]

A reader must use this function to report a non-recoverable error. Details of the error are stored in exception.

If this function returns TRUE the reader might try to go on parsing and reporting further errors; but no regular parsing events are reported.

Implementado en TsHandler, QXmlDefaultHandler, QDomHandler, QXmlDefaultHandler, QphHandler, UiHandler y TsHandler.

bool QXmlErrorHandler::warning ( const QXmlParseException exception) [pure virtual]

A reader might use this function to report a warning. Warnings are conditions that are not errors or fatal errors as defined by the XML 1.0 specification. Details of the warning are stored in exception.

If this function returns FALSE the reader stops parsing and reports an error. The reader uses the function errorString() to get the error message.

Implementado en QXmlDefaultHandler y QXmlDefaultHandler.

virtual bool QXmlErrorHandler::warning ( const QXmlParseException exception) [pure virtual]

La documentación para esta clase fue generada a partir de los siguientes ficheros:
 Todo Clases Namespaces Archivos Funciones Variables 'typedefs' Enumeraciones Valores de enumeraciones Propiedades Amigas 'defines'