QScxmlErrorclass describes the errors returned by the Qt SCXML state machine when parsing an SCXML file. 更多 …
QScxmlError
¶
QScxmlError(arg__1)
QScxmlError(fileName, line, column, description)
- param column
int- param arg__1
- 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”