Class GlobalExceptionHandler
- java.lang.Object
-
- de.adorsys.ledgers.oba.rest.server.resource.exception.handler.GlobalExceptionHandler
-
@ControllerAdvice public class GlobalExceptionHandler extends Object
-
-
Constructor Summary
Constructors Constructor Description GlobalExceptionHandler()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.springframework.http.ResponseEntity<Map<String,String>>handleAccessDeniedException(org.springframework.security.access.AccessDeniedException e)org.springframework.http.ResponseEntity<Map<String,String>>handleAisException(ObaException e)org.springframework.http.ResponseEntity<Map<String,String>>handleAuthException(ConnectException e)org.springframework.http.ResponseEntity<Map<String,String>>handleException(Exception ex, org.springframework.web.method.HandlerMethod handlerMethod)org.springframework.http.ResponseEntity<Map<String,String>>handleFeignException(feign.FeignException ex, org.springframework.web.method.HandlerMethod handlerMethod)
-
-
-
Method Detail
-
handleException
@ExceptionHandler(java.lang.Exception.class) public org.springframework.http.ResponseEntity<Map<String,String>> handleException(Exception ex, org.springframework.web.method.HandlerMethod handlerMethod)
-
handleAccessDeniedException
@ExceptionHandler(org.springframework.security.access.AccessDeniedException.class) public org.springframework.http.ResponseEntity<Map<String,String>> handleAccessDeniedException(org.springframework.security.access.AccessDeniedException e)
-
handleAisException
@ExceptionHandler(de.adorsys.ledgers.oba.service.api.domain.exception.ObaException.class) public org.springframework.http.ResponseEntity<Map<String,String>> handleAisException(ObaException e)
-
handleFeignException
@ExceptionHandler(feign.FeignException.class) public org.springframework.http.ResponseEntity<Map<String,String>> handleFeignException(feign.FeignException ex, org.springframework.web.method.HandlerMethod handlerMethod)
-
handleAuthException
@ExceptionHandler(java.net.ConnectException.class) public org.springframework.http.ResponseEntity<Map<String,String>> handleAuthException(ConnectException e)
-
-