"use strict";
// SPDX-License-Identifier: Apache-2.0
var __importDefault = (this && this.__importDefault) || function (mod) {
    return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.GetTotalDividendHoldersQueryError = void 0;
const BaseError_1 = __importDefault(require("../../../../../../core/error/BaseError"));
const QueryError_1 = require("../../../error/QueryError");
class GetTotalDividendHoldersQueryError extends QueryError_1.QueryError {
    constructor(error) {
        const msg = `An error occurred while querying total dividend holders: ${error.message}`;
        super(msg, error instanceof BaseError_1.default ? error.errorCode : undefined);
    }
}
exports.GetTotalDividendHoldersQueryError = GetTotalDividendHoldersQueryError;
