Package com.arms.util.errors.response
Class ErrorControllerAdvice
- java.lang.Object
-
- com.arms.util.errors.response.ErrorControllerAdvice
-
@ControllerAdvice public class ErrorControllerAdvice extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description ErrorControllerAdvice()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <E> org.springframework.http.ResponseEntity<CommonResponse.ApiResult<E>>
handleAllException(java.lang.Exception e)
<E> org.springframework.http.ResponseEntity<CommonResponse.ApiResult<E>>
handleArgumentException(java.lang.IllegalArgumentException e)
<E> org.springframework.http.ResponseEntity<CommonResponse.ApiResult<E>>
handleException(org.springframework.web.bind.support.WebExchangeBindException e)
reactor.core.publisher.Mono<?>
onException()
-
-
-
Method Detail
-
onException
@ExceptionHandler(org.springframework.security.oauth2.client.ClientAuthorizationException.class) public reactor.core.publisher.Mono<?> onException()
-
handleException
@ExceptionHandler(org.springframework.web.bind.support.WebExchangeBindException.class) public <E> org.springframework.http.ResponseEntity<CommonResponse.ApiResult<E>> handleException(org.springframework.web.bind.support.WebExchangeBindException e)
-
handleArgumentException
@ExceptionHandler(java.lang.IllegalArgumentException.class) public <E> org.springframework.http.ResponseEntity<CommonResponse.ApiResult<E>> handleArgumentException(java.lang.IllegalArgumentException e)
-
handleAllException
@ExceptionHandler(java.lang.Exception.class) public <E> org.springframework.http.ResponseEntity<CommonResponse.ApiResult<E>> handleAllException(java.lang.Exception e)
-
-