Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

Status

import type { Status } from "https://googleapis.deno.dev/v1/script:v1.ts";

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.

interface Status {
code?: number;
details?: {
[key: string]: any;
}
[]
;
message?: string;
}

§Properties

§
code?: number
[src]

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?: {
[key: string]: any;
}
[]
[src]

An array that contains a single ExecutionError object that provides information about the nature of the error.

§
message?: string
[src]

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.