You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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?
The text was updated successfully, but these errors were encountered:
java.lang.IllegalStateException: Expected to find link with rel 'foo' in response {
"_links" : {
"items" : {
"href" : "http://localhost:52758/springagram/items{?projection}",
"templated" : true
},
"profile" : {
"href" : "http://localhost:52758/springagram/alps"
}
}
}
!
Are you suggesting you want to trap this type of exception across the framework? Because that sounds like an API adjustment to define a new exception for this condition.
I wanted to get @olivergierke 's opinion on this. It would appear to generate a more typesafe manner of no link being found. But since this is exception handler, it also promotes using exceptions for controls.
I have attached a commit on an experimental branch.
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?
The text was updated successfully, but these errors were encountered: