@ControllerAdvice
public class SpringMvcExceptionHandler
extends org.springframework.web.servlet.mvc.method.annotation.ResponseEntityExceptionHandler
| Constructor and Description |
|---|
SpringMvcExceptionHandler() |
| Modifier and Type | Method and Description |
|---|---|
org.springframework.http.ResponseEntity<Result> |
apiExHandler(ApiException ex) |
static HashMap<String,String> |
extractErros(org.springframework.validation.BindingResult br) |
protected org.springframework.http.ResponseEntity<Object> |
handleBindException(org.springframework.validation.BindException ex,
org.springframework.http.HttpHeaders headers,
org.springframework.http.HttpStatus status,
org.springframework.web.context.request.WebRequest request) |
protected org.springframework.http.ResponseEntity<Object> |
handleMethodArgumentNotValid(org.springframework.web.bind.MethodArgumentNotValidException ex,
org.springframework.http.HttpHeaders headers,
org.springframework.http.HttpStatus status,
org.springframework.web.context.request.WebRequest request) |
String |
handleNoHandlerFoundException(Exception ex) |
org.springframework.http.ResponseEntity<Result> |
serviceExceptionHandler(ServiceException ex) |
handleAsyncRequestTimeoutException, handleConversionNotSupported, handleException, handleExceptionInternal, handleHttpMediaTypeNotAcceptable, handleHttpMediaTypeNotSupported, handleHttpMessageNotReadable, handleHttpMessageNotWritable, handleHttpRequestMethodNotSupported, handleMissingPathVariable, handleMissingServletRequestParameter, handleMissingServletRequestPart, handleNoHandlerFoundException, handleServletRequestBindingException, handleTypeMismatch@ExceptionHandler(value=ApiException.class) public final org.springframework.http.ResponseEntity<Result> apiExHandler(ApiException ex)
@ExceptionHandler(value=ServiceException.class) public final org.springframework.http.ResponseEntity<Result> serviceExceptionHandler(ServiceException ex)
protected org.springframework.http.ResponseEntity<Object> handleBindException(org.springframework.validation.BindException ex, org.springframework.http.HttpHeaders headers, org.springframework.http.HttpStatus status, org.springframework.web.context.request.WebRequest request)
handleBindException in class org.springframework.web.servlet.mvc.method.annotation.ResponseEntityExceptionHandlerprotected org.springframework.http.ResponseEntity<Object> handleMethodArgumentNotValid(org.springframework.web.bind.MethodArgumentNotValidException ex, org.springframework.http.HttpHeaders headers, org.springframework.http.HttpStatus status, org.springframework.web.context.request.WebRequest request)
handleMethodArgumentNotValid in class org.springframework.web.servlet.mvc.method.annotation.ResponseEntityExceptionHandlerCopyright © 2020. All rights reserved.