QScxmlError#
The QScxmlError
class describes the errors returned by the Qt SCXML state machine when parsing an SCXML file. More…
Synopsis#
Properties#
column
- Number in which the SCXML error occurreddescription
- A description of the SCXML errorfileName
- Name of the file in which the SCXML error occurredline
- Number on which the SCXML error occurredvalid
- Whether the SCXML error is valid
Functions#
Note
This documentation may contain snippets that were automatically translated from C++ to Python. We always welcome contributions to the snippet translation. If you see an issue with the translation, you can also let us know by creating a ticket on https:/bugreports.qt.io/projects/PYSIDE
Detailed Description#
See also
- class PySide6.QtScxml.QScxmlError#
PySide6.QtScxml.QScxmlError(arg__1)
PySide6.QtScxml.QScxmlError(fileName, line, column, description)
- Parameters:
arg__1 –
PySide6.QtScxml.QScxmlError
line – int
fileName – str
description – str
column – int
Creates a new invalid SCXML error.
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.
Note
Properties can be used directly when from __feature__ import true_property
is used or via accessor functions otherwise.
- property PᅟySide6.QtScxml.QScxmlError.column: int#
This property holds The column number in which the SCXML error occurred..
- Access functions:
column
()
- property PᅟySide6.QtScxml.QScxmlError.description: str#
This property holds A description of the SCXML error..
- Access functions:
description
()
- property PᅟySide6.QtScxml.QScxmlError.fileName: str#
This property holds The name of the file in which the SCXML error occurred..
- Access functions:
fileName
()
- property PᅟySide6.QtScxml.QScxmlError.line: int#
This property holds The line number on which the SCXML error occurred..
- Access functions:
line
()
- property PᅟySide6.QtScxml.QScxmlError.valid: bool#
This property holds Whether the SCXML error is valid..
- Access functions:
isValid
()
- PySide6.QtScxml.QScxmlError.column()#
- Return type:
int
Returns the column in which the error occurred.
Getter of property column
.
- PySide6.QtScxml.QScxmlError.description()#
- Return type:
str
Returns the error message.
Getter of property description
.
- PySide6.QtScxml.QScxmlError.fileName()#
- Return type:
str
Returns the name of the file in which the error occurred.
Getter of property fileName
.
- PySide6.QtScxml.QScxmlError.isValid()#
- Return type:
bool
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.
Getter of property valid
.
- PySide6.QtScxml.QScxmlError.line()#
- Return type:
int
Returns the line on which the error occurred.
Getter of property line
.
- PySide6.QtScxml.QScxmlError.toString()#
- Return type:
str
This convenience method converts an error to a string. Returns the error message formatted as: “filename:line:column: error: description”