Skip to content

Commit

Permalink
collapsing catch block
Browse files Browse the repository at this point in the history
  • Loading branch information
renatoh committed Jan 3, 2025
1 parent 0e8dcca commit d4fc020
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions solr/core/src/java/org/apache/solr/request/SimpleFacets.java
Original file line number Diff line number Diff line change
Expand Up @@ -915,10 +915,8 @@ public NamedList<Object> getFacetFieldCounts() throws IOException, SyntaxError {
result.add(key, getTermCounts(facetValue, parsed));
}
return result;
} catch (SolrException se) {
} catch (SolrException | ExitableDirectoryReader.ExitingReaderException se) {
throw se;
} catch (ExitableDirectoryReader.ExitingReaderException timeout) {
throw timeout;
} catch (Exception e) {
throw new SolrException(
ErrorCode.SERVER_ERROR, "Exception during facet.field: " + facetValue, e);
Expand Down

0 comments on commit d4fc020

Please sign in to comment.