The PySide.QtDeclarative.QDeclarativeError class encapsulates a QML error.
PySide.QtDeclarative.QDeclarativeError includes a textual description of the error, as well as location information (the file, line, and column). The PySide.QtDeclarative.QDeclarativeError.toString() method creates a single-line, human-readable string containing all of this information, for example:
file:///home/user/test.qml:7:8: Invalid property assignment: double expectedYou can use qDebug() or qWarning() to output errors to the console. This method will attempt to open the file indicated by the error and include additional contextual information.
file:///home/user/test.qml:7:8: Invalid property assignment: double expected y: "hello" ^
Parameters: | arg__1 – PySide.QtDeclarative.QDeclarativeError |
---|
Creates an empty error object.
Creates a copy of other .
Return type: | PySide.QtCore.int |
---|
Returns the error column number.
Return type: | unicode |
---|
Returns the error description.
Return type: | PySide.QtCore.bool |
---|
Returns true if this error is valid, otherwise false.
Return type: | PySide.QtCore.int |
---|
Returns the error line number.
Parameters: | arg__1 – PySide.QtCore.int |
---|
Sets the error column number.
Parameters: | arg__1 – unicode |
---|
Sets the error description .
Parameters: | arg__1 – PySide.QtCore.int |
---|
Sets the error line number.
Parameters: | arg__1 – PySide.QtCore.QUrl |
---|
Sets the url for the file that caused this error.
Return type: | unicode |
---|
Returns the error as a human readable string.
Return type: | PySide.QtCore.QUrl |
---|
Returns the url for the file that caused this error.