Class ErrorControllerAdvice
- java.lang.Object
-
- com.arms.api.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)
-
-
-
Method Detail
-
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)
-
-