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
오류가 발생한 열을 반환합니다.
참고: 속성 열에 대한 게터 함수입니다.
QString QScxmlError::description() const
오류 메시지를 반환합니다.
참고: 속성 설명을 위한 게터 함수입니다.
QString QScxmlError::fileName() const
오류가 발생한 파일의 이름을 반환합니다.
참고: fileName 속성에 대한 게터 함수입니다.
bool QScxmlError::isValid() const
오류가 유효하면 true
, 그렇지 않으면 false
을 반환합니다. 유효하지 않은 오류는 기본 생성자를 호출하거나 유효하지 않은 오류를 할당해야만 생성할 수 있습니다.
참고: valid 속성에 대한 게터 함수.
int QScxmlError::line() const
오류가 발생한 줄을 반환합니다.
참고: 속성 줄에 대한 게터 함수입니다.
QString QScxmlError::toString() const
이 편리한 메서드는 오류를 문자열로 변환합니다. 다음과 같은 형식의 오류 메시지를 반환합니다: "파일명:줄:열: 오류: 설명"
QScxmlError &QScxmlError::operator=(const QScxmlError &other)
이 SCXML 오류에 other 을 할당하고 이 SCXML 오류에 대한 참조를 반환합니다.
© 2025 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.