next.js/apps/bundle-analyzer/lib/errors.ts
errors.ts11 lines295 B
export class NetworkError extends Error {
  constructor(message: string, options?: { cause?: unknown }) {
    super(message)
    this.name = 'NetworkError'
    // Preserve error cause when supported
    if (options && 'cause' in options) {
      ;(this as any).cause = options.cause
    }
  }
}
Quest for Codev2.0.0
/
SIGN IN