trace_error
trace_errorTrace an error term across throw sites, catch handlers, and PL/pgSQL bodies to identify error propagation.
Instructions
Trace an error term across throw sites (ast-grep throw new Error($MSG), throw new $ERR($MSG)), catch handlers (ast-grep try/catch), and PL/pgSQL bodies that reference the term. FTS narrows the ast-grep pass. Snapshot-strict.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| projectId | No | ||
| projectRef | No | ||
| term | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| projectId | Yes | ||
| result | Yes | ||
| toolName | Yes | ||
| _hints | Yes |