UNPKG

bc-node-sdk

Version:

BetterCommerce's NodeJS SDK encapsulates the base framework for all the Next.js applications.

30 lines (29 loc) 845 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); class BaseException extends Error { constructor(httpResponseCode, status, errorCode, errorMessage) { super(errorMessage); this.httpResponseCode = httpResponseCode; this.status = status; this.errorCode = errorCode; this.errorMessage = errorMessage; this.httpResponseCode = httpResponseCode; this.status = status; this.errorCode = errorCode; this.errorMessage = errorMessage; } getHttpResponseCode() { return this.httpResponseCode; } getStatus() { return this.status; } getErrorCode() { return this.errorCode; } getErrorMessage() { return this.errorMessage; } } exports.default = BaseException; ;