spring-projects / spring-projects/spring-hateoas
Traverson to provide more meaningful exception when link doesn't exist
Nobody has claimed this yet.
- Dominant language
- Java
- Stars
- 1.1k
- Forks
- 476
- PR merge metrics
- No merged PRs in 30d
Description
At the moment an IllegalStateException is thrown when traverson doesn't find a link with the rel you specified.
What about provide a more meaningful exception, like LinkNotFoundException or similar?
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start at Traverson's link-resolution path and inspect where IllegalStateException is raised when the requested rel is absent. Add coverage for the missing-link case and verify that callers receive a more meaningful dedicated exception instead; the issue does not name a source file or existing test.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java
- Domain
- api
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100