|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.trolltech.qt.QSignalEmitter
com.trolltech.qt.QtJambiObject
com.trolltech.qt.xml.QXmlParseException
public class QXmlParseException
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.
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 |
---|
public QXmlParseException(java.lang.String name, int c, int l, java.lang.String p)
Equivalent to QXmlParseException(name, c, l, p, QString()).
public QXmlParseException(java.lang.String name, int c, int l)
Equivalent to QXmlParseException(name, c, l, QString(), QString()).
public QXmlParseException(java.lang.String name, int c)
Equivalent to QXmlParseException(name, c, -1, QString(), QString()).
public QXmlParseException(java.lang.String name)
Equivalent to QXmlParseException(name, -1, -1, QString(), QString()).
public QXmlParseException()
Equivalent to QXmlParseException(QString(), -1, -1, QString(), QString()).
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 |
---|
public final int columnNumber()
Returns the column number where the error occurred.
public final int lineNumber()
Returns the line number where the error occurred.
public final java.lang.String message()
Returns the error message.
public final java.lang.String publicId()
Returns the public identifier where the error occurred.
public final java.lang.String systemId()
Returns the system identifier where the error occurred.
public static QXmlParseException fromNativePointer(QNativePointer nativePointer)
nativePointer
- the QNativePointer of which object should be returned.public static QNativePointer nativePointerArray(QXmlParseException[] array)
array
- the array that the returned pointer will point to.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |