// GovernanceError — the single error class every public builder throws. The discriminator
// is the `code` property; downstream callers branch on the code rather than reading the
// message string.
export class GovernanceError extends Error {
    code;
    details;
    constructor(code, message, details) {
        super(`GovernanceError(${code}): ${message}`);
        this.name = "GovernanceError";
        this.code = code;
        if (details !== undefined) {
            this.details = details;
        }
    }
}
