Uses of Class
com.bobocode.bring.web.servlet.error.ErrorResponse
Packages that use ErrorResponse
-
Uses of ErrorResponse in com.bobocode.bring.web.servlet
Methods in com.bobocode.bring.web.servlet that return ErrorResponseModifier and TypeMethodDescriptionprivate ErrorResponse
JsonExceptionHandler.prepareBody
(Throwable throwable) Prepares the JSON body of the error response based on the thrown exception.Methods in com.bobocode.bring.web.servlet with parameters of type ErrorResponseModifier 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
Methods in com.bobocode.bring.web.servlet.error that return ErrorResponseModifier 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.