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 a
SolrJerseyResponse.
Format and behavior based on the exception handling in Solr's v1 requestHandler's. Also sets metrics if present on the request context.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic 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)
-
Field Details
-
resourceContext
@Context public jakarta.ws.rs.container.ResourceContext resourceContext
-
-
Constructor Details
-
CatchAllExceptionMapper
public CatchAllExceptionMapper()
-
-
Method Details
-
toResponse
- Specified by:
toResponsein interfacejakarta.ws.rs.ext.ExceptionMapper<Exception>
-
processAndRespondToException
public static jakarta.ws.rs.core.Response processAndRespondToException(Exception exception, SolrQueryRequest solrQueryRequest, jakarta.ws.rs.container.ContainerRequestContext containerRequestContext) -
buildExceptionResponse
public static jakarta.ws.rs.core.Response buildExceptionResponse(Exception normalizedException, SolrQueryRequest solrQueryRequest, jakarta.ws.rs.container.ContainerRequestContext containerRequestContext)
-