Class ErrorControllerAdvice
java.lang.Object
com.arms.api.util.errors.response.ErrorControllerAdvice
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription<E> org.springframework.http.ResponseEntity<CommonResponse.ApiResult<E>><E> org.springframework.http.ResponseEntity<CommonResponse.ApiResult<E>><E> org.springframework.http.ResponseEntity<CommonResponse.ApiResult<E>>handleException(org.springframework.web.bind.support.WebExchangeBindException e) reactor.core.publisher.Mono<?>
-
Constructor Details
-
ErrorControllerAdvice
public ErrorControllerAdvice()
-
-
Method Details
-
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(IllegalArgumentException e) -
handleAllException
@ExceptionHandler(java.lang.Exception.class) public <E> org.springframework.http.ResponseEntity<CommonResponse.ApiResult<E>> handleAllException(Exception e)
-