GraphqlErrorExtensions
import type { GraphqlErrorExtensions } from "https://googleapis.deno.dev/v1/firebasedataconnect:v1.ts";
GraphqlErrorExtensions contains additional information of GraphqlError
.
interface GraphqlErrorExtensions {
code?:
| "OK"
| "CANCELLED"
| "UNKNOWN"
| "INVALID_ARGUMENT"
| "DEADLINE_EXCEEDED"
| "NOT_FOUND"
| "ALREADY_EXISTS"
| "PERMISSION_DENIED"
| "UNAUTHENTICATED"
| "RESOURCE_EXHAUSTED"
| "FAILED_PRECONDITION"
| "ABORTED"
| "OUT_OF_RANGE"
| "UNIMPLEMENTED"
| "INTERNAL"
| "UNAVAILABLE"
| "DATA_LOSS";
debugDetails?: string;
file?: string;
resource?: string;
}§Properties
§
code?: "OK" | "CANCELLED" | "UNKNOWN" | "INVALID_ARGUMENT" | "DEADLINE_EXCEEDED" | "NOT_FOUND" | "ALREADY_EXISTS" | "PERMISSION_DENIED" | "UNAUTHENTICATED" | "RESOURCE_EXHAUSTED" | "FAILED_PRECONDITION" | "ABORTED" | "OUT_OF_RANGE" | "UNIMPLEMENTED" | "INTERNAL" | "UNAVAILABLE" | "DATA_LOSS"
[src]Maps to canonical gRPC codes. If not specified, it represents
Code.INTERNAL
.
§
debugDetails?: string
[src]More detailed error message to assist debugging. In the backend, only include it in admin authenticated API like ExecuteGraphql. In the emulator, always include it to assist debugging.