@RestControllerAdvice public class GlobalExceptionHandlerController extends Object
| Constructor and Description |
|---|
GlobalExceptionHandlerController() |
| Modifier and Type | Method and Description |
|---|---|
org.springframework.http.ResponseEntity |
exception(Exception ex,
org.springframework.web.method.HandlerMethod handlerMethod) |
org.springframework.http.ResponseEntity |
httpMessageException(org.springframework.http.converter.HttpMessageNotReadableException ex,
org.springframework.web.method.HandlerMethod handlerMethod) |
org.springframework.http.ResponseEntity |
illegalArgumentException(IllegalArgumentException ex,
org.springframework.web.method.HandlerMethod handlerMethod) |
org.springframework.http.ResponseEntity |
mediaTypeNotSupportedException(org.springframework.web.HttpMediaTypeNotAcceptableException ex,
org.springframework.web.method.HandlerMethod handlerMethod) |
org.springframework.http.ResponseEntity |
requestBodyValidationException(org.springframework.web.bind.MethodArgumentNotValidException ex,
org.springframework.web.method.HandlerMethod handlerMethod) |
org.springframework.http.ResponseEntity |
restException(RestException ex,
org.springframework.web.method.HandlerMethod handlerMethod) |
org.springframework.http.ResponseEntity |
validationException(javax.validation.ValidationException ex,
org.springframework.web.method.HandlerMethod handlerMethod) |
@ExceptionHandler(value=javax.validation.ValidationException.class)
public org.springframework.http.ResponseEntity validationException(javax.validation.ValidationException ex,
org.springframework.web.method.HandlerMethod handlerMethod)
@ExceptionHandler(value=java.lang.IllegalArgumentException.class) public org.springframework.http.ResponseEntity illegalArgumentException(IllegalArgumentException ex, org.springframework.web.method.HandlerMethod handlerMethod)
@ExceptionHandler(value=org.springframework.http.converter.HttpMessageNotReadableException.class)
public org.springframework.http.ResponseEntity httpMessageException(org.springframework.http.converter.HttpMessageNotReadableException ex,
org.springframework.web.method.HandlerMethod handlerMethod)
@ExceptionHandler(value=org.springframework.web.HttpMediaTypeNotAcceptableException.class)
public org.springframework.http.ResponseEntity mediaTypeNotSupportedException(org.springframework.web.HttpMediaTypeNotAcceptableException ex,
org.springframework.web.method.HandlerMethod handlerMethod)
@ExceptionHandler(value=java.lang.Exception.class) public org.springframework.http.ResponseEntity exception(Exception ex, org.springframework.web.method.HandlerMethod handlerMethod)
@ExceptionHandler(value=RestException.class) public org.springframework.http.ResponseEntity restException(RestException ex, org.springframework.web.method.HandlerMethod handlerMethod)
@ExceptionHandler(value=org.springframework.web.bind.MethodArgumentNotValidException.class)
public org.springframework.http.ResponseEntity requestBodyValidationException(org.springframework.web.bind.MethodArgumentNotValidException ex,
org.springframework.web.method.HandlerMethod handlerMethod)
Copyright © 2018 Pivotal Software, Inc.. All rights reserved.