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>
32 lines
1.2 KiB
Text
32 lines
1.2 KiB
Text
"use strict";
|
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
exports.InternalError = exports.NotFoundError = exports.MethodNotAllowedError = exports.KVError = void 0;
|
|
class KVError extends Error {
|
|
constructor(message, status = 500) {
|
|
super(message);
|
|
// see: typescriptlang.org/docs/handbook/release-notes/typescript-2-2.html
|
|
Object.setPrototypeOf(this, new.target.prototype); // restore prototype chain
|
|
this.name = KVError.name; // stack traces display correctly now
|
|
this.status = status;
|
|
}
|
|
status;
|
|
}
|
|
exports.KVError = KVError;
|
|
class MethodNotAllowedError extends KVError {
|
|
constructor(message = `Not a valid request method`, status = 405) {
|
|
super(message, status);
|
|
}
|
|
}
|
|
exports.MethodNotAllowedError = MethodNotAllowedError;
|
|
class NotFoundError extends KVError {
|
|
constructor(message = `Not Found`, status = 404) {
|
|
super(message, status);
|
|
}
|
|
}
|
|
exports.NotFoundError = NotFoundError;
|
|
class InternalError extends KVError {
|
|
constructor(message = `Internal Error in KV Asset Handler`, status = 500) {
|
|
super(message, status);
|
|
}
|
|
}
|
|
exports.InternalError = InternalError;
|