"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.IssueWorkspaceSyncBlockedError = void 0;
class IssueWorkspaceSyncBlockedError extends Error {
    reason;
    conflictedFiles;
    /** Source/base commit that could not be integrated. */
    sourceCommitOid;
    constructor(reason, conflictedFiles = [], options = {}) {
        super(`Issue workspace sync blocked: ${reason}`);
        this.name = "IssueWorkspaceSyncBlockedError";
        this.reason = reason;
        this.conflictedFiles = [...conflictedFiles];
        this.sourceCommitOid = options.sourceCommitOid ?? null;
    }
}
exports.IssueWorkspaceSyncBlockedError = IssueWorkspaceSyncBlockedError;
