@ControllerAdvice
public class CustomExceptionHandler
extends org.springframework.web.servlet.mvc.method.annotation.ResponseEntityExceptionHandler
| Constructor and Description |
|---|
CustomExceptionHandler() |
| Modifier and Type | Method and Description |
|---|---|
org.springframework.http.ResponseEntity<Object> |
handleArgException(org.springframework.web.method.annotation.MethodArgumentTypeMismatchException ex,
org.springframework.web.context.request.WebRequest request) |
org.springframework.http.ResponseEntity<Object> |
handleCDSException(CDSException ex,
org.springframework.web.context.request.WebRequest request) |
org.springframework.http.ResponseEntity<Object> |
handleConstraintViolation(javax.validation.ConstraintViolationException ex,
org.springframework.web.context.request.WebRequest request) |
handleAsyncRequestTimeoutException, handleBindException, handleConversionNotSupported, handleException, handleExceptionInternal, handleHttpMediaTypeNotAcceptable, handleHttpMediaTypeNotSupported, handleHttpMessageNotReadable, handleHttpMessageNotWritable, handleHttpRequestMethodNotSupported, handleMethodArgumentNotValid, handleMissingPathVariable, handleMissingServletRequestParameter, handleMissingServletRequestPart, handleNoHandlerFoundException, handleServletRequestBindingException, handleTypeMismatch@ExceptionHandler(value=javax.validation.ConstraintViolationException.class) public org.springframework.http.ResponseEntity<Object> handleConstraintViolation(javax.validation.ConstraintViolationException ex, org.springframework.web.context.request.WebRequest request)
@ExceptionHandler(value=CDSException.class) public final org.springframework.http.ResponseEntity<Object> handleCDSException(CDSException ex, org.springframework.web.context.request.WebRequest request)
@ExceptionHandler(value=org.springframework.web.method.annotation.MethodArgumentTypeMismatchException.class) public final org.springframework.http.ResponseEntity<Object> handleArgException(org.springframework.web.method.annotation.MethodArgumentTypeMismatchException ex, org.springframework.web.context.request.WebRequest request)
Copyright © 2023. All rights reserved.