Package org.apache.solr.jersey
Class CatchAllExceptionMapper
- java.lang.Object
-
- org.apache.solr.jersey.CatchAllExceptionMapper
-
- All Implemented Interfaces:
javax.ws.rs.ext.ExceptionMapper<Exception>
public class CatchAllExceptionMapper extends Object implements javax.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 Summary
Fields Modifier and Type Field Description javax.ws.rs.container.ResourceContext
resourceContext
-
Constructor Summary
Constructors Constructor Description CatchAllExceptionMapper()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static javax.ws.rs.core.Response
buildExceptionResponse(Exception normalizedException, SolrQueryRequest solrQueryRequest, javax.ws.rs.container.ContainerRequestContext containerRequestContext)
static javax.ws.rs.core.Response
processAndRespondToException(Exception exception, SolrQueryRequest solrQueryRequest, javax.ws.rs.container.ContainerRequestContext containerRequestContext)
javax.ws.rs.core.Response
toResponse(Exception exception)
-
-
-
Method Detail
-
toResponse
public javax.ws.rs.core.Response toResponse(Exception exception)
- Specified by:
toResponse
in interfacejavax.ws.rs.ext.ExceptionMapper<Exception>
-
processAndRespondToException
public static javax.ws.rs.core.Response processAndRespondToException(Exception exception, SolrQueryRequest solrQueryRequest, javax.ws.rs.container.ContainerRequestContext containerRequestContext)
-
buildExceptionResponse
public static javax.ws.rs.core.Response buildExceptionResponse(Exception normalizedException, SolrQueryRequest solrQueryRequest, javax.ws.rs.container.ContainerRequestContext containerRequestContext)
-
-