Commit bc7bd66
Document onSqlError hook for customizable SQL error logging
Add documentation for the new onSqlError hook that allows developers to customize SQL error logging behavior in Agents. The hook is called before errors are thrown via onError, enabling custom logging, monitoring, or observability integrations.
Changes:
- Added onSqlError method signature to Agent class API reference
- Included practical example showing custom error logging with context
- Documented that errors are still thrown via onError after this hook
Related PR: cloudflare/agents#768
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude Sonnet 4.5 <[email protected]>1 parent 537b3b8 commit bc7bd66
1 file changed
+24
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
111 | 111 | | |
112 | 112 | | |
113 | 113 | | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
114 | 119 | | |
115 | 120 | | |
116 | 121 | | |
| |||
533 | 538 | | |
534 | 539 | | |
535 | 540 | | |
| 541 | + | |
| 542 | + | |
| 543 | + | |
| 544 | + | |
| 545 | + | |
536 | 546 | | |
537 | 547 | | |
538 | 548 | | |
| |||
585 | 595 | | |
586 | 596 | | |
587 | 597 | | |
| 598 | + | |
| 599 | + | |
| 600 | + | |
| 601 | + | |
| 602 | + | |
| 603 | + | |
| 604 | + | |
| 605 | + | |
| 606 | + | |
| 607 | + | |
| 608 | + | |
| 609 | + | |
| 610 | + | |
| 611 | + | |
588 | 612 | | |
589 | 613 | | |
590 | 614 | | |
| |||
0 commit comments