MCPcopy Create free account
hub / github.com/observablehq/framework / isSystemError

Function isSystemError

src/error.ts:28–30  ·  view source on GitHub ↗
(error: unknown)

Source from the content-addressed store, hash-verified

26}
27
28export function isSystemError(error: unknown): error is NodeJS.ErrnoException {
29 return error instanceof Error && "code" in error;
30}
31
32export function isHttpError(error: unknown): error is HttpError {
33 return error instanceof Error && "statusCode" in error;

Callers 3

error-test.tsFile · 0.85
isEnoentFunction · 0.85
startMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected