Send feedback
ExecutionError
Stay organized with collections
Save and categorize content based on your preferences.
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 (ScriptStackTraceElement
)
}
] ,
"errorMessage" : string ,
"errorType" : string
}
Fields
scriptStackTraceElements[]
object (ScriptStackTraceElement
)
An array of objects that provide a stack trace through the script to show where the execution failed, with the deepest call first.
errorMessage
string
The error message thrown by Apps Script, usually localized into the user's language.
errorType
string
The error type, for example TypeError
or ReferenceError
. If the error type is unavailable, this field is not included.
ScriptStackTraceElement
A stack trace through the script that shows where the execution failed.
JSON representation
{
"function" : string ,
"lineNumber" : integer
}
Fields
function
string
The name of the function that failed.
lineNumber
integer
The line number where the script failed.
Send feedback
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License , and code samples are licensed under the Apache 2.0 License . For details, see the Google Developers Site Policies . Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2023-01-20 UTC.
[{
"type": "thumb-down",
"id": "missingTheInformationINeed",
"label":"Missing the information I need"
},{
"type": "thumb-down",
"id": "tooComplicatedTooManySteps",
"label":"Too complicated / too many steps"
},{
"type": "thumb-down",
"id": "outOfDate",
"label":"Out of date"
},{
"type": "thumb-down",
"id": "samplesCodeIssue",
"label":"Samples / code issue"
},{
"type": "thumb-down",
"id": "otherDown",
"label":"Other"
}]
[{
"type": "thumb-up",
"id": "easyToUnderstand",
"label":"Easy to understand"
},{
"type": "thumb-up",
"id": "solvedMyProblem",
"label":"Solved my problem"
},{
"type": "thumb-up",
"id": "otherUp",
"label":"Other"
}]
Need to tell us more?
{"lastModified": "Last updated 2023-01-20 UTC."}
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2023-01-20 UTC."]]