UNPKG

@syngrisi/syngrisi

Version:
20 lines 500 B
// src/server/utils/ApiError.ts var ApiError = class extends Error { statusCode; isOperational; constructor(statusCode, message, isOperational = true, stack = "") { super(message); this.statusCode = statusCode; this.isOperational = isOperational; if (stack) { this.stack = stack; } else { Error.captureStackTrace(this, this.constructor); } } }; var ApiError_default = ApiError; export { ApiError_default as default }; //# sourceMappingURL=ApiError.js.map