UNPKG

payme-integration

Version:

NestJS integration module for Payme payment system

21 lines (20 loc) 532 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.PaymeException = void 0; const common_1 = require("@nestjs/common"); class PaymeException extends common_1.HttpException { constructor(error, data) { super(error.message, error.code); this._error = error; this._data = data; } get error() { return { ...this._error, data: { ...this._data, }, }; } } exports.PaymeException = PaymeException;