このページでは

QScxmlError Class

QScxmlError クラスは、SCXML ファイルの解析時にQt SCXML ステートマシンから返されるエラーを表します。詳細...

ヘッダー: #include <QScxmlError>
CMake: find_package(Qt6 REQUIRED COMPONENTS Scxml)
target_link_libraries(mytarget PRIVATE Qt6::Scxml)
qmake: QT += scxml

プロパティ

公開関数

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)

詳細な説明

関連項目: QScxmlStateMachine およびQScxmlCompiler 。

プロパティのドキュメント

[read-only] column : const int

このプロパティには、SCXML エラーが発生した列番号が格納されます。

アクセス関数:

int column() const

[read-only] description : const QString

このプロパティには、SCXMLエラーの説明が格納されています。

アクセス関数:

QString description() const

[read-only] fileName : const QString

このプロパティには、SCXMLのエラーが発生したファイルの名前が格納されます。

アクセス関数:

QString fileName() const

[read-only] line : const int

このプロパティには、SCXML エラーが発生した行番号が格納されます。

アクセス関数:

int line() const

[read-only] valid : const bool

このプロパティは、SCXMLエラーが有効であるかどうかを示します。

アクセス関数:

bool isValid() const

メンバ関数のドキュメント

QScxmlError::QScxmlError()

新しい無効な SCXML エラーを作成します。

QScxmlError::QScxmlError(const QString &fileName, int line, int column, const QString &description)

エラーメッセージ「description 」に加え、エラーが発生した場所であるfileName 、line 、およびcolumn を含む、新しい有効なSCXMLエラーを作成します。

QScxmlError::QScxmlError(const QScxmlError &other)

other のコピーを作成します。

[noexcept] QScxmlError::~QScxmlError()

SCXMLのエラーを解消します。

int QScxmlError::column() const

エラーが発生した列を返します。

注: プロパティ「column」のゲッター 関数です。

QString QScxmlError::description() const

エラーメッセージを返します。

注: プロパティ descriptionのゲッター 関数です。

QString QScxmlError::fileName() const

エラーが発生したファイルの名前を返します。

注: プロパティ fileNameのゲッター 関数です。

bool QScxmlError::isValid() const

エラーが有効な場合は `true ` を返し、それ以外の場合は `false ` を返します。無効なエラーは、デフォルトコンストラクタを呼び出すか、無効なエラーを代入することによってのみ作成できます。

注: プロパティvalidのゲッター 関数です。

int QScxmlError::line() const

エラーが発生した行を返します。

注: プロパティ「line」のゲッター 関数です。

QString QScxmlError::toString() const

この便利メソッドは、エラーを文字列に変換します。エラーメッセージは「ファイル名:行:列: エラー: 説明」という形式で返されます。

QScxmlError &QScxmlError::operator=(const QScxmlError &other)

このSCXMLエラーにother を割り当て、このSCXMLエラーへの参照を返します。

© 2026 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.