- MCP
- code on this site's /mcp
- CLI
- none: the JSON below is the answer
- JSON
- /christopher/abso-core/files/worker/project/project-error.ts?version=278&format=json
11 linesFirst import 100%Last change First import in version 0, 1 version changed it
You're reading version 278. The newest is 318, and no version since then changed this file.
1import type { ProjectErrorCode } from "./project-types.ts";
3/** Bad input from a caller. The Worker answers 400 (409 for already-initialized). */
4export class ProjectError extends Error {
5 readonly code: ProjectErrorCode;
6 constructor(code: ProjectErrorCode, message: string) {
7 super(message);
8 this.name = "ProjectError";
9 this.code = code;
10 }
11}