UNPKG

@gray-adeyi/korapay-sdk

Version:

A korapay client SDK for the javascript runtime.

38 lines (37 loc) 1.13 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.KorapayClientError = void 0; class KorapayClientError extends Error { constructor(detail, status, code, wrappedError) { super(detail); Object.defineProperty(this, "detail", { enumerable: true, configurable: true, writable: true, value: void 0 }); Object.defineProperty(this, "status", { enumerable: true, configurable: true, writable: true, value: void 0 }); Object.defineProperty(this, "code", { enumerable: true, configurable: true, writable: true, value: void 0 }); Object.defineProperty(this, "wrappedError", { enumerable: true, configurable: true, writable: true, value: void 0 }); this.detail = detail; this.status = status; this.code = code; this.wrappedError = wrappedError; } } exports.KorapayClientError = KorapayClientError;