GoogleApi.Script.V1.Model.Status (google_api_script v0.19.0)

View Source

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

  • code (type: integer(), default: nil) - 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.
  • details (type: list(map()), default: nil) - An array that contains a single ExecutionError object that provides information about the nature of the error.
  • message (type: String.t, default: nil) - 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.

Summary

Functions

Unwrap a decoded JSON object into its complex fields.

Types

t()

@type t() :: %GoogleApi.Script.V1.Model.Status{
  code: integer() | nil,
  details: [map()] | nil,
  message: String.t() | nil
}

Functions

decode(value, options)

@spec decode(struct(), keyword()) :: struct()

Unwrap a decoded JSON object into its complex fields.