find_throws_declarations
Find all Java methods that declare a specific exception in their throws clause. Input a fully qualified exception type to analyze exception flow and handling across a loaded project.
Instructions
Find all throws declarations of an exception type in method signatures.
JDT-UNIQUE: This fine-grained search is not available in LSP.
USAGE: Provide fully qualified exception type name as typeName
OUTPUT: All methods that declare 'throws ExceptionType'
Useful for:
Understanding exception flow in the codebase
Finding all methods that can throw a specific exception
Exception handling analysis
potentialMatches, present only when there are any, holds the places JDT's search reports as possible matches but cannot confirm, because a type or name there does not resolve (a missing dependency or a compile error): count is their exact number, and locations lists them, as many as the results it stands beside may list. They are never counted or listed as results.
Requires load_project to be called first.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| typeName | Yes | Fully qualified exception type name (e.g., 'java.io.IOException') | |
| maxResults | No | Maximum results to return (default 100) |