/**
 * Supervisor Policy Not Found Error
 *
 * Thrown by EnableSupervisor / DisableSupervisor when no policy row
 * exists for the requested (scopeType, scopeId?, featureId?) scope.
 */
export class SupervisorPolicyNotFoundError extends Error {
    scopeType;
    scopeId;
    featureId;
    code = 'SUPERVISOR_POLICY_NOT_FOUND';
    constructor(scopeType, scopeId, featureId) {
        super(`No supervisor policy configured for scopeType=${scopeType}${scopeId ? `, scopeId=${scopeId}` : ''}${featureId ? `, featureId=${featureId}` : ''}`);
        this.scopeType = scopeType;
        this.scopeId = scopeId;
        this.featureId = featureId;
        this.name = 'SupervisorPolicyNotFoundError';
        Object.setPrototypeOf(this, new.target.prototype);
    }
}
