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 will contain this ` Status` object.
Attributes
code[RW]
The status code, which should be an enum value of google.rpc.Code. Corresponds to the JSON property `code` @return [Fixnum]
details[RW]
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>>]
message[RW]
A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the #details field, or localized by the client. Corresponds to the JSON property `message` @return [String]
Public Class Methods
new(**args)
click to toggle source
# File generated/google/apis/script_v1/classes.rb, line 157 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 162 def update!(**args) @code = args[:code] if args.key?(:code) @message = args[:message] if args.key?(:message) @details = args[:details] if args.key?(:details) end