@gray-adeyi/korapay-sdk
Version:
A korapay client SDK for the javascript runtime.
34 lines (33 loc) • 969 B
JavaScript
export 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;
}
}