umay-render
Version:
Free, high-performance HTML to PDF and HTML to Image conversion SDK for both browser and Node.js
21 lines (20 loc) • 585 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.ErrorCodes = exports.UmayError = void 0;
// src/errors.ts
class UmayError extends Error {
constructor(code, message, details) {
super(message);
this.code = code;
this.details = details;
Object.setPrototypeOf(this, UmayError.prototype);
this.name = "UmayError";
}
}
exports.UmayError = UmayError;
exports.ErrorCodes = {
VALIDATION_ERROR: "VALIDATION_ERROR",
API_ERROR: "API_ERROR",
NETWORK_ERROR: "NETWORK_ERROR",
TIMEOUT: "TIMEOUT",
};