Class ExceptionAdvisor
- java.lang.Object
-
- de.adorsys.ledgers.middleware.rest.exception.ExceptionAdvisor
-
@ControllerAdvice public class ExceptionAdvisor extends Object
-
-
Constructor Summary
Constructors Constructor Description ExceptionAdvisor()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.springframework.http.ResponseEntity<Map<String,String>>accessDeniedExceptionHandler(org.springframework.security.access.AccessDeniedException ex)org.springframework.http.ResponseEntity<Map<String,String>>globalExceptionHandler(Exception ex)org.springframework.http.ResponseEntity<Map<String,String>>handleDepositModuleException(DepositModuleException ex)org.springframework.http.ResponseEntity<Map<String,String>>handleFeignException(feign.FeignException ex)org.springframework.http.ResponseEntity<Map<String,String>>handleMiddlewareModuleException(MiddlewareModuleException ex)org.springframework.http.ResponseEntity<Map<String,String>>handlePostingModuleException(PostingModuleException ex)org.springframework.http.ResponseEntity<Map<String,String>>handleScaModuleException(ScaModuleException ex)org.springframework.http.ResponseEntity<Map<String,String>>handleUserManagementModuleException(UserManagementModuleException ex)
-
-
-
Method Detail
-
globalExceptionHandler
@ExceptionHandler(java.lang.Exception.class) public org.springframework.http.ResponseEntity<Map<String,String>> globalExceptionHandler(Exception ex)
-
accessDeniedExceptionHandler
@ExceptionHandler(org.springframework.security.access.AccessDeniedException.class) public org.springframework.http.ResponseEntity<Map<String,String>> accessDeniedExceptionHandler(org.springframework.security.access.AccessDeniedException ex)
-
handleMiddlewareModuleException
@ExceptionHandler(de.adorsys.ledgers.middleware.api.exception.MiddlewareModuleException.class) public org.springframework.http.ResponseEntity<Map<String,String>> handleMiddlewareModuleException(MiddlewareModuleException ex)
-
handlePostingModuleException
@ExceptionHandler(de.adorsys.ledgers.util.exception.PostingModuleException.class) public org.springframework.http.ResponseEntity<Map<String,String>> handlePostingModuleException(PostingModuleException ex)
-
handleUserManagementModuleException
@ExceptionHandler(de.adorsys.ledgers.util.exception.UserManagementModuleException.class) public org.springframework.http.ResponseEntity<Map<String,String>> handleUserManagementModuleException(UserManagementModuleException ex)
-
handleScaModuleException
@ExceptionHandler(de.adorsys.ledgers.util.exception.ScaModuleException.class) public org.springframework.http.ResponseEntity<Map<String,String>> handleScaModuleException(ScaModuleException ex)
-
handleDepositModuleException
@ExceptionHandler(de.adorsys.ledgers.util.exception.DepositModuleException.class) public org.springframework.http.ResponseEntity<Map<String,String>> handleDepositModuleException(DepositModuleException ex)
-
-