内容表

上一话题

QScxmlEcmaScriptDataModel

下一话题

QScxmlEvent

QScxmlError

QScxmlError class describes the errors returned by the Qt SCXML state machine when parsing an SCXML file. 更多

Inheritance diagram of PySide2.QtScxml.QScxmlError

概要

函数

详细描述

class QScxmlError

QScxmlError(arg__1)

QScxmlError(fileName, line, column, description)

param column

int

param arg__1

QScxmlError

param fileName

unicode

param line

int

param description

unicode

Creates a new invalid SCXML error.

构造副本为 other .

Creates a new valid SCXML error that contains the error message, description , as well as the fileName , line ,和 column where the error occurred.

PySide2.QtScxml.QScxmlError. column ( )
返回类型

int

Returns the column in which the error occurred.

PySide2.QtScxml.QScxmlError. description ( )
返回类型

unicode

Returns the error message.

PySide2.QtScxml.QScxmlError. fileName ( )
返回类型

unicode

Returns the name of the file in which the error occurred.

PySide2.QtScxml.QScxmlError. isValid ( )
返回类型

bool

返回 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.

PySide2.QtScxml.QScxmlError. line ( )
返回类型

int

Returns the line on which the error occurred.

PySide2.QtScxml.QScxmlError. toString ( )
返回类型

unicode

This convenience method converts an error to a string. Returns the error message formatted as: “filename:line:column: error: description”