ExecutionError class

An object that provides information about the nature of an error in the Apps Script Execution API. If an run call succeeds but the script function (or Apps Script itself) throws an exception, the response body's error field will contain a Status object. The Status object's details field will contain an array with a single one of these ExecutionError objects.

Constructors

ExecutionError()
ExecutionError.fromJson(Map _json)

Properties

errorMessage String
The error message thrown by Apps Script, usually localized into the user's language.
read / write
errorType String
The error type, for example TypeError or ReferenceError. If the error type is unavailable, this field is not included.
read / write
scriptStackTraceElements List<ScriptStackTraceElement>
An array of objects that provide a stack trace through the script to show where the execution failed, with the deepest call first.
read / write
hashCode int
The hash code for this object. [...]
read-only, inherited
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited

Methods

toJson() Map
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
toString() String
Returns a string representation of this object.
inherited

Operators

operator ==(dynamic other) bool
The equality operator. [...]
inherited