MCPcopy Create free account
hub / github.com/code-with-antonio/nodebase / SentryExampleAPIError

Class SentryExampleAPIError

src/app/api/sentry-example-api/route.ts:4–9  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2
3export const dynamic = "force-dynamic";
4class SentryExampleAPIError extends Error {
5 constructor(message: string | undefined) {
6 super(message);
7 this.name = "SentryExampleAPIError";
8 }
9}
10// A faulty API route to test Sentry's error monitoring
11export function GET() {
12 throw new SentryExampleAPIError("This error is raised on the backend called by the example page.");

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected