MCPcopy Index your code
hub / github.com/getsentry/sentry-javascript / isHttpError

Function isHttpError

packages/sveltekit/src/common/utils.ts:63–65  ·  view source on GitHub ↗
(err: unknown)

Source from the content-addressed store, hash-verified

61 * Determines if a thrown "error" is a HttpError
62 */
63export function isHttpError(err: unknown): err is HttpError {
64 return typeof err === 'object' && err !== null && 'status' in err && 'body' in err;
65}

Callers 3

utils.test.tsFile · 0.90
sendErrorToSentryFunction · 0.90
sendErrorToSentryFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected