@opensearch-project/opensearch
Version:
The official OpenSearch client for Node.js
25 lines (21 loc) • 647 B
JavaScript
/*
* Copyright OpenSearch Contributors
* SPDX-License-Identifier: Apache-2.0
*
* The OpenSearch Contributors require contributions made to
* this file be licensed under the Apache-2.0 license or a
* compatible open source license.
*
*/
;
const { OpenSearchClientError } = require('../errors');
class AwsSigv4SignerError extends OpenSearchClientError {
constructor(message, data) {
super(message, data);
Error.captureStackTrace(this, AwsSigv4SignerError);
this.name = 'AwsSigv4SignerError';
this.message = message || 'AwsSigv4Signer Error';
this.data = data;
}
}
module.exports = AwsSigv4SignerError;