You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: AGENTS.md
+4Lines changed: 4 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -103,3 +103,7 @@ bun --hot ./index.ts
103
103
```
104
104
105
105
For more information, read the Bun API docs in `node_modules/bun-types/docs/**.mdx`.
106
+
107
+
## Error Handling
108
+
109
+
If a validation error is needed (user-correctable input problem), use `ValidationError` directly. Do not create subclasses like `MissingCodeDirectoryError extends ValidationError` — just throw `new ValidationError("code directory not found: ...")` with a descriptive message.
0 commit comments