Qt Jambi Home

com.trolltech.qt.xml
Class QXmlParseException

java.lang.Object
  extended by com.trolltech.qt.QSignalEmitter
      extended by com.trolltech.qt.QtJambiObject
          extended by com.trolltech.qt.xml.QXmlParseException
All Implemented Interfaces:
QtJambiInterface

public class QXmlParseException
extends QtJambiObject

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:

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, QXmlReader

Nested Class Summary
 
Nested classes/interfaces inherited from class com.trolltech.qt.QSignalEmitter
QSignalEmitter.Signal0, QSignalEmitter.Signal1<A>, QSignalEmitter.Signal2<A,B>, QSignalEmitter.Signal3<A,B,C>, QSignalEmitter.Signal4<A,B,C,D>, QSignalEmitter.Signal5<A,B,C,D,E>, QSignalEmitter.Signal6<A,B,C,D,E,F>, QSignalEmitter.Signal7<A,B,C,D,E,F,G>, QSignalEmitter.Signal8<A,B,C,D,E,F,G,H>, QSignalEmitter.Signal9<A,B,C,D,E,F,G,H,I>
 
Constructor Summary
QXmlParseException()
          Equivalent to QXmlParseException(QString(), -1, -1, QString(), QString()).
QXmlParseException(java.lang.String name)
          Equivalent to QXmlParseException(name, -1, -1, QString(), QString()).
QXmlParseException(java.lang.String name, int c)
          Equivalent to QXmlParseException(name, c, -1, QString(), QString()).
QXmlParseException(java.lang.String name, int c, int l)
          Equivalent to QXmlParseException(name, c, l, QString(), QString()).
QXmlParseException(java.lang.String name, int c, int l, java.lang.String p)
          Equivalent to QXmlParseException(name, c, l, p, QString()).
QXmlParseException(java.lang.String name, int c, int l, java.lang.String p, java.lang.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.
 
Method Summary
 int columnNumber()
          Returns the column number where the error occurred.
static QXmlParseException fromNativePointer(QNativePointer nativePointer)
          This function returns the QXmlParseException instance pointed to by nativePointer
 int lineNumber()
          Returns the line number where the error occurred.
 java.lang.String message()
          Returns the error message.
static QNativePointer nativePointerArray(QXmlParseException[] array)
          This function returns a QNativePointer that is pointing to the specified QXmlParseException array.
 java.lang.String publicId()
          Returns the public identifier where the error occurred.
 java.lang.String systemId()
          Returns the system identifier where the error occurred.
 
Methods inherited from class com.trolltech.qt.QtJambiObject
dispose, disposed, finalize, reassignNativeResources, tr, tr, tr
 
Methods inherited from class com.trolltech.qt.QSignalEmitter
blockSignals, disconnect, disconnect, signalsBlocked, signalSender, thread
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.trolltech.qt.QtJambiInterface
disableGarbageCollection, nativeId, nativePointer, reenableGarbageCollection, setJavaOwnership
 

Constructor Detail

QXmlParseException

public QXmlParseException(java.lang.String name,
                          int c,
                          int l,
                          java.lang.String p)

Equivalent to QXmlParseException(name, c, l, p, QString()).


QXmlParseException

public QXmlParseException(java.lang.String name,
                          int c,
                          int l)

Equivalent to QXmlParseException(name, c, l, QString(), QString()).


QXmlParseException

public QXmlParseException(java.lang.String name,
                          int c)

Equivalent to QXmlParseException(name, c, -1, QString(), QString()).


QXmlParseException

public QXmlParseException(java.lang.String name)

Equivalent to QXmlParseException(name, -1, -1, QString(), QString()).


QXmlParseException

public QXmlParseException()

Equivalent to QXmlParseException(QString(), -1, -1, QString(), QString()).


QXmlParseException

public QXmlParseException(java.lang.String name,
                          int c,
                          int l,
                          java.lang.String p,
                          java.lang.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.

Method Detail

columnNumber

public final int columnNumber()

Returns the column number where the error occurred.


lineNumber

public final int lineNumber()

Returns the line number where the error occurred.


message

public final java.lang.String message()

Returns the error message.


publicId

public final java.lang.String publicId()

Returns the public identifier where the error occurred.


systemId

public final java.lang.String systemId()

Returns the system identifier where the error occurred.


fromNativePointer

public static QXmlParseException fromNativePointer(QNativePointer nativePointer)
This function returns the QXmlParseException instance pointed to by nativePointer

Parameters:
nativePointer - the QNativePointer of which object should be returned.

nativePointerArray

public static QNativePointer nativePointerArray(QXmlParseException[] array)
This function returns a QNativePointer that is pointing to the specified QXmlParseException array.

Parameters:
array - the array that the returned pointer will point to.
Returns:
a QNativePointer that is pointing to the specified array.

Qt Jambi Home