rsnext/packages/next/client/components/hooks-server-context.ts

10 lines
243 B
TypeScript
Raw Normal View History

2022-09-25 21:35:05 +02:00
export const DYNAMIC_ERROR_CODE = 'DYNAMIC_SERVER_USAGE'
export class DynamicServerError extends Error {
2022-09-25 21:35:05 +02:00
digest: typeof DYNAMIC_ERROR_CODE = DYNAMIC_ERROR_CODE
constructor(type: string) {
super(`Dynamic server usage: ${type}`)
}
}