The QScxmlError class describes the errors returned by the Qt SCXML state machine when parsing an SCXML file. 更多...
头: | #include <QScxmlError> |
qmake: | QT += scxml |
Since: | Qt 5.7 |
|
QScxmlError () | |
QScxmlError (const QString & fileName , int line , int column , const QString & description ) | |
QScxmlError (const QScxmlError & other ) | |
~QScxmlError () | |
int | column () const |
QString | description () const |
QString | fileName () const |
bool | isValid () const |
int | line () const |
QString | toString () const |
QScxmlError & | operator= (const QScxmlError & other ) |
The QScxmlError class describes the errors returned by the Qt SCXML state machine when parsing an SCXML file.
另请参阅 QScxmlStateMachine and QScxmlCompiler .
This property holds the column number in which the SCXML error occurred.
访问函数:
int | column () const |
This property holds a description of the SCXML error.
访问函数:
QString | description () const |
This property holds the name of the file in which the SCXML error occurred.
访问函数:
QString | fileName () const |
This property holds the line number on which the SCXML error occurred.
访问函数:
int | line () const |
This property holds whether the SCXML error is valid.
访问函数:
bool | isValid () const |
Creates a new invalid SCXML error.
Creates a new valid SCXML error that contains the error message, description , as well as the fileName , line ,和 column where the error occurred.
构造副本为 other .
Destroys the SCXML error.
Returns the column in which the error occurred.
注意: Getter 函数对于特性 column .
Returns the error message.
注意: Getter 函数对于特性 description .
Returns the name of the file in which the error occurred.
注意: Getter 函数对于特性 fileName .
返回
true
if the error is valid,
false
otherwise. An invalid error can only be created by calling the default constructor or by assigning an invalid error.
注意: Getter 函数对于特性 valid .
Returns the line on which the error occurred.
注意: Getter 函数对于特性 line .
This convenience method converts an error to a string. Returns the error message formatted as: "filename:line:column: error: description"
赋值 other to this SCXML error and returns a reference to this SCXML error.