"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.GetTokenBySaltQueryError = void 0;
const QueryError_1 = require("../../../../error/QueryError");
const BaseError_1 = __importDefault(require("../../../../../../../core/error/BaseError"));
class GetTokenBySaltQueryError extends QueryError_1.QueryError {
    constructor(error) {
        const msg = `An error occurred while querying token salt: ${error.message}`;
        super(msg, error instanceof BaseError_1.default ? error.errorCode : undefined);
    }
}
exports.GetTokenBySaltQueryError = GetTokenBySaltQueryError;
