PythonScript.SetError Method
Use this method to raise a error.
shared SetError(
errorType
as Integer,
message
as String)
Parameters
- errorType
- Type of error to raise.
This must be one of the constants defined in PythonErrorTypes - message
- The error message to set
Remarks
Usually you will use this inside a Xojo function that has been exposed to Python.
See Also
PythonScript Class