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 Stringorg.springframework.http.ResponseEntity<MessageDTO> handle(org.springframework.security.access.AccessDeniedException ex) org.springframework.http.ResponseEntity<MessageDTO> handle(org.springframework.web.servlet.resource.NoResourceFoundException 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:
handlein classBaseExceptionAdvice
-
handle
@ExceptionHandler(org.springframework.web.servlet.resource.NoResourceFoundException.class) public org.springframework.http.ResponseEntity<MessageDTO> handle(org.springframework.web.servlet.resource.NoResourceFoundException ex) -
getPrincipal
- Overrides:
getPrincipalin classBaseExceptionAdvice
-