Skip to content

fix: narrow SchemaService.getSchema() throws clause - #98

Open
adityamparikh wants to merge 3 commits into
apache:mainfrom
adityamparikh:fix/schema-service-throws-clause
Open

fix: narrow SchemaService.getSchema() throws clause#98
adityamparikh wants to merge 3 commits into
apache:mainfrom
adityamparikh:fix/schema-service-throws-clause

Conversation

@adityamparikh

@adityamparikh adityamparikh commented Apr 24, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Narrow getSchema() from throws Exception to throws SolrServerException, IOException, the exceptions SchemaRequest.process() declares. Source-compatible for callers.
  • The javadoc no longer claims a missing collection throws SolrServerException; it surfaces as an unchecked SolrException (404), which SchemaServiceIntegrationTest already covers.

Verification

Touches the same SchemaService.getSchema lines as #108; whichever merges second needs a one-line rebase.

🤖 Generated with Claude Code

https://claude.ai/code/session_01CiUHyyXLTo9ATdgg8eRFZJ

@adityamparikh
adityamparikh force-pushed the fix/schema-service-throws-clause branch from 90997b8 to 84768e3 Compare May 2, 2026 17:04
@adityamparikh
adityamparikh force-pushed the fix/schema-service-throws-clause branch from 84768e3 to 2a0b152 Compare June 14, 2026 03:34
Change getSchema() from `throws Exception` to `throws SolrServerException, IOException`
to match the actual exceptions thrown by SchemaRequest.process().

Signed-off-by: Aditya Parikh <aditya.m.parikh@gmail.com>
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Signed-off-by: adityamparikh <aditya.m.parikh@gmail.com>
adityamparikh and others added 2 commits September 12, 2026 23:21
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01CiUHyyXLTo9ATdgg8eRFZJ
Signed-off-by: Aditya Parikh <aditya.m.parikh@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant