Uses of Class
app.YUP.exception.UnauthorizedAccessException
Packages that use UnauthorizedAccessException
-
Uses of UnauthorizedAccessException in app.YUP.exception
Methods in app.YUP.exception with parameters of type UnauthorizedAccessExceptionModifier and TypeMethodDescriptionorg.springframework.web.servlet.ModelAndViewYupControllerAdvice.handleException(UnauthorizedAccessException e, jakarta.servlet.http.HttpServletResponse response) Handles exceptions of typeUnauthorizedAccessExceptionby setting the HTTP response status to 403 (Forbidden) and returning aModelAndViewobject that directs the user to an error view with an appropriate error message.