Qyoto  4.0.5
Qyoto is a C# language binding for Qt
 All Classes Namespaces Functions Variables Typedefs Enumerations Properties
QtXml.QXmlParseException Class Reference

The QXmlParseException class is used to report errors with the QXmlErrorHandler interface. More...

Inheritance diagram for QtXml.QXmlParseException:
Collaboration diagram for QtXml.QXmlParseException:

Public Member Functions

 QXmlParseException (QXmlParseException other)
 
 
 QXmlParseException (string name="", int c=-1, int l=-1, string p="", string s="")
 
 
virtual void CreateProxy ()
 
new int ColumnNumber ()
 
 
new int LineNumber ()
 
 
new string Message ()
 
 
new string PublicId ()
 
 
new string SystemId ()
 
 
new void Dispose ()
 

Protected Member Functions

 QXmlParseException (System.Type dummy)
 

Protected Attributes

SmokeInvocation interceptor
 

Properties

virtual System.IntPtr SmokeObject [get, set]
 

Detailed Description

The QXmlParseException class is used to report errors with the QXmlErrorHandler interface.

The XML subsystem constructs an instance of this class when it detects an error. You can retrieve the place where the error occurred using systemId(), publicId(), lineNumber() and columnNumber(), along with the error message(). The possible error messages are:

"no error occurred"

"error triggered by consumer"

"unexpected end of file"

"more than one document type definition"

"error occurred while parsing element"

"tag mismatch"

"error occurred while parsing content"

"unexpected character"

"invalid name for processing instruction"

"version expected while reading the XML declaration"

"wrong value for standalone declaration"

"encoding declaration or standalone declaration expected while reading the XML declaration"

"standalone declaration expected while reading the XML declaration"

"error occurred while parsing document type definition"

"letter is expected"

"error occurred while parsing comment"

"error occurred while parsing reference"

"internal general entity reference not allowed in DTD"

"external parsed general entity reference not allowed in attribute value"

"external parsed general entity reference not allowed in DTD"

"unparsed entity reference n wrong context"

"recursive entities"

"error in the text declaration of an external entity"

Note that, if you want to display these error messages to your application's users, they will be displayed in English unless they are explicitly translated.

See also QXmlErrorHandler and QXmlReader.

Constructor & Destructor Documentation

QtXml.QXmlParseException.QXmlParseException ( System.Type  dummy)
protected
QtXml.QXmlParseException.QXmlParseException ( QXmlParseException  other)

Creates a copy of other.

QtXml.QXmlParseException.QXmlParseException ( string  name = "",
int  c = -1,
int  l = -1,
string  p = "",
string  s = "" 
)

Constructs a parse exception with the error string name for column c and line l for the public identifier p and the system identifier s.

Member Function Documentation

new int QtXml.QXmlParseException.ColumnNumber ( )

Returns the column number where the error occurred.

virtual void QtXml.QXmlParseException.CreateProxy ( )
virtual
new void QtXml.QXmlParseException.Dispose ( )
new int QtXml.QXmlParseException.LineNumber ( )

Returns the line number where the error occurred.

new string QtXml.QXmlParseException.Message ( )

Returns the error message.

new string QtXml.QXmlParseException.PublicId ( )

Returns the public identifier where the error occurred.

new string QtXml.QXmlParseException.SystemId ( )

Returns the system identifier where the error occurred.

Member Data Documentation

SmokeInvocation QtXml.QXmlParseException.interceptor
protected

Property Documentation

virtual System.IntPtr QtXml.QXmlParseException.SmokeObject
getset