find_catch_blocks
Identify all catch blocks handling a specific exception type across the solution, with details on rethrows, empty handlers, and runtime filters. Optionally include clauses catching base types.
Instructions
Find the catch clauses that handle an exception type across the solution, and say what each one does with it. Each item reports hasFilter (a when clause, so the handler may decline at runtime), rethrows (the body contains a bare throw;) and isEmpty (an empty handler body) — together these answer 'who is silently swallowing this exception?' in a single call. By default only clauses declaring exactly the requested type match; set includeBaseClauses to also surface handlers that catch a base type, including catch (Exception) and bare catch, since those bind the requested type too. caughtType is null for a bare catch. The exception type may live in source or in metadata. Returns an envelope with items, totalCount, truncated, limit and a byType / byProject summary, sorted by file, line, column.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Maximum number of items to return (default: 500). | |
| exceptionType | Yes | Exception type to search for (e.g. `System.IO.IOException` or `MyApp.DomainException`). | |
| includeBaseClauses | No | Also match clauses catching a base type of the requested one, including bare `catch`. Default false. |