Contents

scriptErrorString

Sets a script error string that is associated with execution of the command.

Declaration

var scriptErrorString: String? { get set }

Parameters

  • errorString:

    A string that describes an error.

Discussion

If you override performDefaultImplementation() and an error occurs, you should call this method to supply a string that provides a useful explanation. In fact, any script handler should call this method when an error occurs.

Calling this method alone does not cause an error message to be displayed—you must also call scriptErrorNumber to supply an error number.

See Also

Handling script execution errors