Rocky_Mountain_Vending/.pnpm-store/v10/files/ed/45230439259747751c5c8186f1b9bd6712c9c34d192bdc0535b518eeaa48c6215d92d15163de94459c425c79b617f7fbe668b225a26fb6fbc47a7b4ad52f66
DMleadgen 46d973904b
Initial commit: Rocky Mountain Vending website
Next.js website for Rocky Mountain Vending company featuring:
- Product catalog with Stripe integration
- Service areas and parts pages
- Admin dashboard with Clerk authentication
- SEO optimized pages with JSON-LD structured data

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-02-12 16:22:15 -07:00

33 lines
778 B
Text

module.exports = class URLError extends Error {
constructor(msg, fn = URLError, code = fn.name) {
super(`${code}: ${msg}`)
this.code = code
if (Error.captureStackTrace) Error.captureStackTrace(this, fn)
}
get name() {
return 'URLError'
}
static INVALID_URL(msg, input) {
const err = new URLError(msg, URLError.INVALID_URL)
err.input = input
return err
}
static INVALID_URL_SCHEME(msg = 'Invalid URL') {
return new URLError(msg, URLError.INVALID_URL_SCHEME)
}
static INVALID_FILE_URL_HOST(msg = 'Invalid file: URL host') {
return new URLError(msg, URLError.INVALID_FILE_URL_HOST)
}
static INVALID_FILE_URL_PATH(msg = 'Invalid file: URL path') {
return new URLError(msg, URLError.INVALID_FILE_URL_PATH)
}
}