next.js/packages/next/src/shared/lib/errors/usage-error.ts
usage-error.ts11 lines348 B
export class UsageError extends Error {
  constructor(message: string, docUrl: string) {
    super(`${message}\n\nLearn more: ${docUrl}`)
    this.name = 'UsageError'

    // This error is meant to interrupt the server start/build process
    // but the stack trace isn't meaningful, as it points to internal code.
    this.stack = undefined
  }
}
Quest for Codev2.0.0
/
SIGN IN