google_api_script v0.3.0 GoogleApi.Script.V1.Model.Status 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 (integer()): The status code. For this API, this value either: <ul> <li> 10, indicating a `SCRIPT_TIMEOUT` error,</li> <li> 3, indicating an `INVALID_ARGUMENT` error, or</li> <li> 1, indicating a `CANCELLED` execution.</li> </ul> Defaults to: null.
  • details ([Object]): An array that contains a single ExecutionError object that provides information about the nature of the error. Defaults to: null.
  • message (String.t): 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. Defaults to: null.

Link to this section Summary

Functions

Unwrap a decoded JSON object into its complex fields

Link to this section Types

Link to this type

t() View Source
t() :: %GoogleApi.Script.V1.Model.Status{
  code: any(),
  details: [GoogleApi.Script.V1.Model.Object.t()],
  message: any()
}

Link to this section Functions

Link to this function

decode(value, options) View Source
decode(struct(), keyword()) :: struct()

Unwrap a decoded JSON object into its complex fields.