@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> |
handleValidationException(javax.validation.ValidationException ex,
org.springframework.web.context.request.WebRequest request) |
org.springframework.http.ResponseEntity<Object> |
handleVersionNotSupportedException(VersionNotSupportedException 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.ValidationException.class) public final org.springframework.http.ResponseEntity<Object> handleValidationException(javax.validation.ValidationException ex, org.springframework.web.context.request.WebRequest request)
@ExceptionHandler(value=VersionNotSupportedException.class) public final org.springframework.http.ResponseEntity<Object> handleVersionNotSupportedException(VersionNotSupportedException ex, org.springframework.web.context.request.WebRequest request)
Copyright © 2020. All rights reserved.