class Google::Apis::ScriptV1::Status
If a `run` call succeeds but the script function (or Apps Script itself) throws an exception, the response body's error field contains this `Status` object.
Attributes
The status code. For this API, this value either: - 10, indicating a ` SCRIPT_TIMEOUT` error, - 3, indicating an `INVALID_ARGUMENT` error, or - 1, indicating a `CANCELLED` execution. Corresponds to the JSON property `code` @return [Fixnum]
An array that contains a single ExecutionError
object that provides information about the nature of the error. Corresponds to the JSON property `details` @return [Array<Hash<String,Object>>]
A developer-facing error message, which is in English. Any user-facing error message is localized and sent in the details field, or localized by the client. Corresponds to the JSON property `message` @return [String]
Public Class Methods
# File lib/google/apis/script_v1/classes.rb, line 1040 def initialize(**args) update!(**args) end
Public Instance Methods
Update properties of this object
# File lib/google/apis/script_v1/classes.rb, line 1045 def update!(**args) @code = args[:code] if args.key?(:code) @details = args[:details] if args.key?(:details) @message = args[:message] if args.key?(:message) end