Rocky_Mountain_Vending/.pnpm-store/v10/files/91/1924d362774d8aa94141c56c949696425b4555c66963fde38eade35295ee407e3ab47d1c6cd24907772b9703c830368c3335ac59fa2fea6c0d8b4f71995c3b
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

51 lines
1.3 KiB
Text

function fmt(val) {
if (Array.isArray(val)) {
return val.map((v) => fmt(v)).join(" or ");
}
if (!val) {
return "" + val;
}
return val.toString();
}
export class ERR_INVALID_ARG_VALUE extends TypeError {
code = "ERR_INVALID_ARG_VALUE";
constructor(name, value, reason) {
super(`The ${name.includes(".") ? "property" : "argument"} '${name}' ${reason}. Received ${value}`);
}
}
export class ERR_INVALID_ARG_TYPE extends TypeError {
code = "ERR_INVALID_ARG_TYPE";
constructor(name, expected, actual) {
super(`The "${name}" argument must be of type ${fmt(expected)}. Received ${fmt(actual)}`);
}
}
export class ERR_INVALID_URL extends TypeError {
code = "ERR_INVALID_URL";
input;
base;
constructor(input, base) {
super("Invalid URL");
this.input = input;
if (base != null) {
this.base = base;
}
}
}
export class ERR_INVALID_URL_SCHEME extends TypeError {
code = "ERR_INVALID_URL_SCHEME";
constructor(expected) {
super(`The URL must be of scheme ${expected}`);
}
}
export class ERR_INVALID_FILE_URL_PATH extends TypeError {
code = "ERR_INVALID_FILE_URL_PATH";
constructor(path) {
super(`Invalid ile URL path: ${path}`);
}
}
export class ERR_INVALID_FILE_URL_HOST extends TypeError {
code = "ERR_INVALID_FILE_URL_HOST";
constructor(host) {
super(`File URL host must be "localhost" or empty on ${host}`);
}
}