Uses of Class
edu.ntnu.idatt2106_2023_06.backend.exception.UnauthorizedException
Packages that use UnauthorizedException
-
Uses of UnauthorizedException in edu.ntnu.idatt2106_2023_06.backend.exception
Methods in edu.ntnu.idatt2106_2023_06.backend.exception with parameters of type UnauthorizedExceptionModifier and TypeMethodDescriptionorg.springframework.http.ResponseEntity<Object>
ControllerAdvisor.unauthorizedAction
(UnauthorizedException e, org.springframework.web.context.request.WebRequest webRequest) This method handles UnauthorizedExceptions by returning an HTTP response entity with a body containing the time of the error and the message to be returned to the client with a status code of 401.