Files
orca/src/shared/worktree/worktree-catalog-availability.ts
T
Neil 8967b10d41 chore: remove verified dead code and calibrate Knip entries (#31903)
* chore: remove verified dead code and calibrate Knip entries

* fix: include mjs consumers in dead-code analysis
2026-10-22 02:19:04 -07:00

18 lines
727 B
TypeScript

/**
* "I could not ask" is not "there is nothing there".
*
* A worktree catalog that could not be read must stay distinguishable from one that
* genuinely lists no worktrees, or downstream reconciliation converts a transport or
* Git failure into authoritative emptiness and tears down live state
* (docs/reference/ssh-execution-boundary.md, issue #14004).
*/
export class WorktreeCatalogUnavailableError extends Error {
/** Structural marker: survives JSON-RPC re-wrapping better than `instanceof` across module copies. */
readonly worktreeCatalogUnavailable = true
constructor(message: string, options?: { cause?: unknown }) {
super(message, options)
this.name = 'WorktreeCatalogUnavailableError'
}
}