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