UNPKG

modem-pay

Version:

A TypeScript SDK for integrating with the Modem Pay payment gateway, enabling seamless payment processing and financial services in your applications.

15 lines (14 loc) 464 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); class ModemError extends Error { constructor(message, statusCode) { super(message); this.name = "ModemPayError"; this.statusCode = statusCode; // Ensure proper stack trace for where the error was thrown if (Error.captureStackTrace) { Error.captureStackTrace(this, this.constructor); } } } exports.default = ModemError;