UNPKG

connect-sdk-nodejs

Version:

SDK to communicate with the Worldline Global Collect platform using the Worldline Connect Server API

25 lines 1.24 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.SecretKeyNotAvailableError = exports.ApiVersionMismatchError = void 0; class ApiVersionMismatchError extends Error { constructor(message, eventApiVersion, sdkApiVersion) { super(message); this.eventApiVersion = eventApiVersion; this.sdkApiVersion = sdkApiVersion; this.name = "ApiVersionMismatchError"; // see https://github.com/Microsoft/TypeScript-wiki/blob/master/Breaking-Changes.md#extending-built-ins-like-error-array-and-map-may-no-longer-work Object.setPrototypeOf(this, ApiVersionMismatchError.prototype); } } exports.ApiVersionMismatchError = ApiVersionMismatchError; class SecretKeyNotAvailableError extends Error { constructor(message, keyId) { super(message); this.keyId = keyId; this.name = "SecretKeyNotAvailableError"; // see https://github.com/Microsoft/TypeScript-wiki/blob/master/Breaking-Changes.md#extending-built-ins-like-error-array-and-map-may-no-longer-work Object.setPrototypeOf(this, SecretKeyNotAvailableError.prototype); } } exports.SecretKeyNotAvailableError = SecretKeyNotAvailableError; //# sourceMappingURL=types.js.map