@aws-amplify/analytics
Version:
Analytics category of aws-amplify
22 lines (20 loc) • 772 B
JavaScript
;
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
// SPDX-License-Identifier: Apache-2.0
Object.defineProperty(exports, "__esModule", { value: true });
exports.AnalyticsError = void 0;
const utils_1 = require("@aws-amplify/core/internals/utils");
/**
* @internal
*/
class AnalyticsError extends utils_1.AmplifyError {
constructor(params) {
super(params);
// Hack for making the custom error class work when transpiled to es5
// TODO: Delete the following 2 lines after we change the build target to >= es2015
this.constructor = AnalyticsError;
Object.setPrototypeOf(this, AnalyticsError.prototype);
}
}
exports.AnalyticsError = AnalyticsError;
//# sourceMappingURL=AnalyticsError.js.map