error property

Status? error
getter/setter pair

If a run call succeeds but the script function (or Apps Script itself) throws an exception, this field contains a Status object.

The Status object's details field contains an array with a single ExecutionError object that provides information about the nature of the error.

Implementation

Status? error;