class Google::Apis::ScriptV1::ExecutionError

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.

Attributes

error_message[RW]

The error message thrown by Apps Script, usually localized into the user's language. Corresponds to the JSON property `errorMessage` @return [String]

error_type[RW]

The error type, for example `TypeError` or `ReferenceError`. If the error type is unavailable, this field is not included. Corresponds to the JSON property `errorType` @return [String]

script_stack_trace_elements[RW]

An array of objects that provide a stack trace through the script to show where the execution failed, with the deepest call first. Corresponds to the JSON property `scriptStackTraceElements` @return [Array<Google::Apis::ScriptV1::ScriptStackTraceElement>]

Public Class Methods

new(**args) click to toggle source
# File generated/google/apis/script_v1/classes.rb, line 195
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File generated/google/apis/script_v1/classes.rb, line 200
def update!(**args)
  @script_stack_trace_elements = args[:script_stack_trace_elements] if args.key?(:script_stack_trace_elements)
  @error_message = args[:error_message] if args.key?(:error_message)
  @error_type = args[:error_type] if args.key?(:error_type)
end