Package spark.http.matching
Class GeneralError
java.lang.Object
spark.http.matching.GeneralError
Modifies the HTTP response and body based on the provided exception and request/response wrappers.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) static void
modify
(javax.servlet.http.HttpServletRequest httpRequest, javax.servlet.http.HttpServletResponse httpResponse, Body body, RequestWrapper requestWrapper, ResponseWrapper responseWrapper, ExceptionMapper exceptionMapper, Exception e) Modifies the HTTP response and body based on the provided exception.
-
Field Details
-
LOG
private static final org.slf4j.Logger LOG
-
-
Constructor Details
-
GeneralError
GeneralError()
-
-
Method Details
-
modify
static void modify(javax.servlet.http.HttpServletRequest httpRequest, javax.servlet.http.HttpServletResponse httpResponse, Body body, RequestWrapper requestWrapper, ResponseWrapper responseWrapper, ExceptionMapper exceptionMapper, Exception e) Modifies the HTTP response and body based on the provided exception.
-