bc-checkout-sdk
Version:
BetterCommerce's Checkout NodeJS SDK enables BC client applications to integrate with Checkout merchant API system. It publishes an interface to interact with [Checkout API](https://api-reference.checkout.com/#operation/getPaymentDetails/) endpoints.
31 lines (30 loc) • 884 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.BaseException = void 0;
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.BaseException = BaseException;
;