An object that provides information about the nature of an error resulting from an attempted execution of a script function using the Apps Script API. If a run call succeeds but the script function (or Apps Script itself) throws an exception, the response body's error field contains a Status object. The Status object's details field contains an array with a single one of these ExecutionError objects.
| JSON representation |
|---|
{
"scriptStackTraceElements": [
{
object ( |
| Fields | |
|---|---|
scriptStackTraceElements[] |
An array of objects that provide a stack trace through the script to show where the execution failed, with the deepest call first. |
errorMessage |
The error message thrown by Apps Script, usually localized into the user's language. |
errorType |
The error type, for example |
ScriptStackTraceElement
A stack trace through the script that shows where the execution failed.
| JSON representation |
|---|
{ "function": string, "lineNumber": integer } |
| Fields | |
|---|---|
function |
The name of the function that failed. |
lineNumber |
The line number where the script failed. |