Class ExceptionAdvice
java.lang.Object
info.ejava.examples.common.web.BaseExceptionAdvice
info.ejava.examples.svc.authz.authorities.controllers.ExceptionAdvice
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected String
org.springframework.http.ResponseEntity
<MessageDTO> handle
(org.springframework.security.access.AccessDeniedException ex) Methods inherited from class info.ejava.examples.common.web.BaseExceptionAdvice
buildResponse, getMethod, handle, handle, handle, handle, handle, handle, handleRuntimeException
-
Constructor Details
-
ExceptionAdvice
public ExceptionAdvice()
-
-
Method Details
-
handle
@ExceptionHandler(org.springframework.security.access.AccessDeniedException.class) public org.springframework.http.ResponseEntity<MessageDTO> handle(org.springframework.security.access.AccessDeniedException ex) - Overrides:
handle
in classBaseExceptionAdvice
-
getPrincipal
- Overrides:
getPrincipal
in classBaseExceptionAdvice
-