@atomiqlabs/sdk-lib
Version:
Basic SDK functionality library for atomiq
23 lines (22 loc) • 626 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.PaymentAuthError = void 0;
/**
* An error when the payment authorization returned by the intermediary is invalid
*/
class PaymentAuthError extends Error {
constructor(msg, code, data) {
super(msg);
this.data = data;
this.code = code;
// Set the prototype explicitly.
Object.setPrototypeOf(this, PaymentAuthError.prototype);
}
getCode() {
return this.code;
}
getData() {
return this.data;
}
}
exports.PaymentAuthError = PaymentAuthError;