"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.NoMembershipError = void 0;
class NoMembershipError extends Error {
    /** Occurs when the given user is not a member of the given tenant,
     * and is attempting to perform a membership-only action (such as publishing).
     */
    constructor(username, tenantCode) {
        super(`User [${username}] is not a member of tenant [${tenantCode}]`);
        this.username = username;
        this.tenantCode = tenantCode;
    }
}
exports.NoMembershipError = NoMembershipError;
//# sourceMappingURL=NoMembershipError.js.map