Package org.apache.solr.jersey
Class CatchAllExceptionMapper
- java.lang.Object
- 
- org.apache.solr.jersey.CatchAllExceptionMapper
 
- 
- All Implemented Interfaces:
- jakarta.ws.rs.ext.ExceptionMapper<Exception>
 
 public class CatchAllExceptionMapper extends Object implements jakarta.ws.rs.ext.ExceptionMapper<Exception> Flattens the exception and sets on aSolrJerseyResponse.Format and behavior based on the exception handling in Solr's v1 requestHandler's. Also sets metrics if present on the request context. 
- 
- 
Field SummaryFields Modifier and Type Field Description jakarta.ws.rs.container.ResourceContextresourceContext
 - 
Constructor SummaryConstructors Constructor Description CatchAllExceptionMapper()
 - 
Method SummaryAll Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static jakarta.ws.rs.core.ResponsebuildExceptionResponse(Exception normalizedException, SolrQueryRequest solrQueryRequest, jakarta.ws.rs.container.ContainerRequestContext containerRequestContext)static jakarta.ws.rs.core.ResponseprocessAndRespondToException(Exception exception, SolrQueryRequest solrQueryRequest, jakarta.ws.rs.container.ContainerRequestContext containerRequestContext)jakarta.ws.rs.core.ResponsetoResponse(Exception exception)
 
- 
- 
- 
Method Detail- 
toResponsepublic jakarta.ws.rs.core.Response toResponse(Exception exception) - Specified by:
- toResponsein interface- jakarta.ws.rs.ext.ExceptionMapper<Exception>
 
 - 
processAndRespondToExceptionpublic static jakarta.ws.rs.core.Response processAndRespondToException(Exception exception, SolrQueryRequest solrQueryRequest, jakarta.ws.rs.container.ContainerRequestContext containerRequestContext) 
 - 
buildExceptionResponsepublic static jakarta.ws.rs.core.Response buildExceptionResponse(Exception normalizedException, SolrQueryRequest solrQueryRequest, jakarta.ws.rs.container.ContainerRequestContext containerRequestContext) 
 
- 
 
-