The QScxmlError class describes the errors returned by the Qt SCXML state machine when parsing an SCXML file. More...
Header: | #include <QScxmlError> |
CMake: | find_package(Qt6 COMPONENTS Scxml REQUIRED) target_link_libraries(mytarget PRIVATE Qt6::Scxml) |
qmake: | QT += scxml |
Since: | Qt 5.7 |
|
QScxmlError(const QScxmlError &other) | |
QScxmlError(const QString &fileName, int line, int column, const QString &description) | |
QScxmlError() | |
QScxmlError & | operator=(const QScxmlError &other) |
~QScxmlError() | |
int | column() const |
QString | description() const |
QString | fileName() const |
bool | isValid() const |
int | line() const |
QString | toString() const |
See also QScxmlStateMachine and QScxmlCompiler.
[read-only]
column : const int
This property holds the column number in which the SCXML error occurred.
Access functions:
int | column() const |
[read-only]
description : const QString
This property holds a description of the SCXML error.
Access functions:
QString | description() const |
[read-only]
fileName : const QString
This property holds the name of the file in which the SCXML error occurred.
Access functions:
QString | fileName() const |
[read-only]
line : const int
This property holds the line number on which the SCXML error occurred.
Access functions:
int | line() const |
[read-only]
valid : const bool
This property holds whether the SCXML error is valid.
Access functions:
bool | isValid() const |
Constructs a copy of other.
Creates a new valid SCXML error that contains the error message, description, as well as the fileName, line, and column where the error occurred.
Creates a new invalid SCXML error.
Assigns other to this SCXML error and returns a reference to this SCXML error.
Destroys the SCXML error.
Returns the column in which the error occurred.
Note: Getter function for property column.
Returns the error message.
Note: Getter function for property description.
Returns the name of the file in which the error occurred.
Note: Getter function for property fileName.
Returns 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.
Note: Getter function for property valid.
Returns the line on which the error occurred.
Note: Getter function for property line.
This convenience method converts an error to a string. Returns the error message formatted as: "filename:line:column: error: description"
© The Qt Company Ltd
Licensed under the GNU Free Documentation License, Version 1.3.
https://doc.qt.io/qt-6.2/qscxmlerror.html