// SPDX-License-Identifier: Apache-2.0
import { QueryError } from "../../../error/QueryError";
import BaseError from "../../../../../../core/error/BaseError";
export class GetRateQueryError extends QueryError {
    constructor(error) {
        const msg = `An error occurred while querying bond rate: ${error.message}`;
        super(msg, error instanceof BaseError ? error.errorCode : undefined);
    }
}
