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