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

CustomError

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

Customize service error responses. For example, list any service specific protobuf types that can appear in error detail lists of error responses. Example: custom_error: types: - google.foo.v1.CustomError - google.foo.v1.AnotherError

interface CustomError {
rules?: CustomErrorRule[];
types?: string[];
}

§Properties

§

The list of custom error rules that apply to individual API messages. NOTE: All service configuration rules follow "last one wins" order.

§
types?: string[]
[src]

The list of custom error detail types, e.g. 'google.foo.v1.CustomError'.