Class: Google::Apis::ScriptV1::ExecutionError
- Inherits:
-
Object
- Object
- Google::Apis::ScriptV1::ExecutionError
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/script_v1/classes.rb,
lib/google/apis/script_v1/representations.rb,
lib/google/apis/script_v1/representations.rb
Overview
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.
Instance Attribute Summary collapse
-
#error_message ⇒ String
The error message thrown by Apps Script, usually localized into the user's language.
-
#error_type ⇒ String
The error type, for example
TypeError
orReferenceError
. -
#script_stack_trace_elements ⇒ Array<Google::Apis::ScriptV1::ScriptStackTraceElement>
An array of objects that provide a stack trace through the script to show where the execution failed, with the deepest call first.
Instance Method Summary collapse
-
#initialize(**args) ⇒ ExecutionError
constructor
A new instance of ExecutionError.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ ExecutionError
Returns a new instance of ExecutionError.
252 253 254 |
# File 'lib/google/apis/script_v1/classes.rb', line 252 def initialize(**args) update!(**args) end |
Instance Attribute Details
#error_message ⇒ String
The error message thrown by Apps Script, usually localized into the user's
language.
Corresponds to the JSON property errorMessage
238 239 240 |
# File 'lib/google/apis/script_v1/classes.rb', line 238 def @error_message end |
#error_type ⇒ String
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
244 245 246 |
# File 'lib/google/apis/script_v1/classes.rb', line 244 def error_type @error_type end |
#script_stack_trace_elements ⇒ Array<Google::Apis::ScriptV1::ScriptStackTraceElement>
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
250 251 252 |
# File 'lib/google/apis/script_v1/classes.rb', line 250 def script_stack_trace_elements @script_stack_trace_elements end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
257 258 259 260 261 |
# File 'lib/google/apis/script_v1/classes.rb', line 257 def update!(**args) @error_message = args[:error_message] if args.key?(:error_message) @error_type = args[:error_type] if args.key?(:error_type) @script_stack_trace_elements = args[:script_stack_trace_elements] if args.key?(:script_stack_trace_elements) end |