Uses of Class
com.bobocode.bring.web.servlet.error.ErrorResponse
-
Uses of ErrorResponse in com.bobocode.bring.web.servlet
Modifier and TypeMethodDescriptionprivate ErrorResponse
JsonExceptionHandler.prepareBody
(Throwable throwable) Prepares the JSON body of the error response based on the thrown exception.Modifier and TypeMethodDescriptionprivate static void
JsonExceptionHandler.setHeaders
(org.apache.catalina.connector.Response response, ErrorResponse errorResponse) Sets the headers in the servlet response for the JSON error response. -
Uses of ErrorResponse in com.bobocode.bring.web.servlet.error
Modifier and TypeMethodDescriptionErrorResponseCreator.defaultErrorResponse
(Throwable e, Boolean withStackTrace) Prepares a default error response for internal server errors.ErrorResponseCreator.prepareErrorResponse
(ResponseStatus responseStatus, Throwable throwable, Boolean withStackTrace) Prepares a customized error response based on the provided parameters.