package.dist.src.errors.compression-error.js Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of sdk Show documentation
Show all versions of sdk Show documentation
Client SDK for Momento services
The newest version!
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.CompressionError = void 0;
const sdk_core_1 = require("@gomomento/sdk-core");
class CompressionError extends sdk_core_1.SdkError {
constructor(action, option) {
super(`Compressor is not set, but \`${action}\` was called with the \`${option}\` option; please install @gomomento/sdk-nodejs-compression and call \`Configuration.withCompressionStrategy\` to enable compression.`);
this._messageWrapper = 'Compression Error';
}
}
exports.CompressionError = CompressionError;
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY29tcHJlc3Npb24tZXJyb3IuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi9zcmMvZXJyb3JzL2NvbXByZXNzaW9uLWVycm9yLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7OztBQUFBLGtEQUE2QztBQUU3QyxNQUFhLGdCQUFpQixTQUFRLG1CQUFRO0lBRTVDLFlBQVksTUFBYyxFQUFFLE1BQWM7UUFDeEMsS0FBSyxDQUNILGdDQUFnQyxNQUFNLDRCQUE0QixNQUFNLHVJQUF1SSxDQUNoTixDQUFDO1FBSkssb0JBQWUsR0FBRyxtQkFBbUIsQ0FBQztJQUsvQyxDQUFDO0NBQ0Y7QUFQRCw0Q0FPQyIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCB7U2RrRXJyb3J9IGZyb20gJ0Bnb21vbWVudG8vc2RrLWNvcmUnO1xuXG5leHBvcnQgY2xhc3MgQ29tcHJlc3Npb25FcnJvciBleHRlbmRzIFNka0Vycm9yIHtcbiAgb3ZlcnJpZGUgX21lc3NhZ2VXcmFwcGVyID0gJ0NvbXByZXNzaW9uIEVycm9yJztcbiAgY29uc3RydWN0b3IoYWN0aW9uOiBzdHJpbmcsIG9wdGlvbjogc3RyaW5nKSB7X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