Public Types | Public Member Functions

zeus::IXMLErrorReporter Class Reference

#include <IXMLErrorReporter.hpp>

Inheritance diagram for zeus::IXMLErrorReporter:
zeus::IZUnknown

List of all members.

Public Types

enum  EXMLErrorType { etXMLWarning = 0, etXMLError = 1, etXMLFatal = 2, etXMLNo = 3 }

Public Member Functions

virtual void MQUALIFIER onMessage (EXMLErrorType eType, const IString &rstrMessage, Int iLine, Int iColumn)=0
virtual void MQUALIFIER onNodeError (IXMLNodeError &rErrorObj)=0
virtual void MQUALIFIER reset ()=0

Detailed Description

The XML error reporter is used to return the errors while parsing or validating an xml document.


Member Enumeration Documentation

Type of the error message

Enumerator:
etXMLWarning 

Message is an warning only

etXMLError 

Message is an error

etXMLFatal 

Message is a fatal error

etXMLNo 

Message is information only


Member Function Documentation

virtual void MQUALIFIER zeus::IXMLErrorReporter::onMessage ( EXMLErrorType  eType,
const IString rstrMessage,
Int  iLine,
Int  iColumn 
) [pure virtual]

This is the generous method to return errors occured parsing a file. It will provide an error type, a message and position attributes of the error occured.

Parameters:
eType,:Type of the message
rstrMessage,:Message itself
iLine,:Line information where the error occured in the XML file
iColumn,:Column information where the error occured in the XML file
virtual void MQUALIFIER zeus::IXMLErrorReporter::onNodeError ( IXMLNodeError rErrorObj ) [pure virtual]

This provides an error return if the document is parsed and validated. The returned object contains all information of the error, including the node reference.

Parameters:
rErrorObj,:Object of the error.
virtual void MQUALIFIER zeus::IXMLErrorReporter::reset (  ) [pure virtual]

This method must reset the error reporter. All messages must be reset.


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines


Written by Benjamin Hadorn http://www.xatlantis.ch.
Last change made on Sun Jan 22 2012 15:28:37