Skip to main content

error-type

ERROR_TYPES​

const ERROR_TYPES: readonly [
"Error",
"TypeError",
"RangeError",
"SyntaxError",
"ReferenceError",
"GraphQLError",
"AggregateError",
"AbortError",
"SystemError",
];

Defined in: error-type.ts:2

Error class names that may be reported as-is.


NO_SCHEMA_ERROR​

const NO_SCHEMA_ERROR: "<no-schema>" = "<no-schema>";

Defined in: error-type.ts:15

Reported when no schema could be loaded.


POST_ERROR_PREFIX​

const POST_ERROR_PREFIX: "post:" = "post:";

Defined in: error-type.ts:18

Prefix for failures happening after generation (post-generation hooks).


errorTypeOf()​

function errorTypeOf(error): string;

Defined in: error-type.ts:29

Maps any thrown value to an anonymous error type: an allowlisted class name (optionally suffixed with a system code), or <custom-error>. Never throws.

Parameters​

error​

unknown

Returns​

string