Removing the try {} catch makes the function possibly throw QidMissingException. It is also handled Before the change if a qid is not found, it's like this
Coverage increased (+2.4%) to 45.447% when pulling c25ebc25f57a75cde8841d26fdad1d740a5c38e3 on issue_522_statuscode_200_when_solr_error_happens into f4eb2ec4e208914008a4cb040c68b3d43e024f92 on develop.
…have a customExceptionResolver which can set HTTP status code according to Solr error type.
for issue 522 https://github.com/AtlasOfLivingAustralia/biocache-service/issues/522
So now the response will like these:
Removing the
try {} catch
makes the function possibly throw QidMissingException. It is also handledBefore the change if a qid is not found, it's like this
Now after the change it's like