@ControllerAdvice
public class ResthubExceptionHandler
extends org.springframework.web.servlet.mvc.method.annotation.ResponseEntityExceptionHandler
| Constructor and Description |
|---|
ResthubExceptionHandler() |
| Modifier and Type | Method and Description |
|---|---|
org.springframework.http.ResponseEntity<Object> |
handleCustomException(Exception ex,
org.springframework.web.context.request.WebRequest request) |
protected org.springframework.http.ResponseEntity<Object> |
handleIllegalArgument(IllegalArgumentException ex,
org.springframework.http.HttpHeaders headers,
org.springframework.http.HttpStatus status,
org.springframework.web.context.request.WebRequest request) |
protected org.springframework.http.ResponseEntity<Object> |
handleNotFound(NotFoundException ex,
org.springframework.http.HttpHeaders headers,
org.springframework.http.HttpStatus status,
org.springframework.web.context.request.WebRequest request) |
protected org.springframework.http.ResponseEntity<Object> |
handleNotImplemented(NotImplementedException ex,
org.springframework.http.HttpHeaders headers,
org.springframework.http.HttpStatus status,
org.springframework.web.context.request.WebRequest request) |
protected org.springframework.http.ResponseEntity<Object> |
handleValidation(ValidationException ex,
org.springframework.http.HttpHeaders headers,
org.springframework.http.HttpStatus status,
org.springframework.web.context.request.WebRequest request) |
handleBindException, handleConversionNotSupported, handleException, handleExceptionInternal, handleHttpMediaTypeNotAcceptable, handleHttpMediaTypeNotSupported, handleHttpMessageNotReadable, handleHttpMessageNotWritable, handleHttpRequestMethodNotSupported, handleMethodArgumentNotValid, handleMissingServletRequestParameter, handleMissingServletRequestPart, handleNoSuchRequestHandlingMethod, handleServletRequestBindingException, handleTypeMismatch@ExceptionHandler(value={java.lang.IllegalArgumentException.class,javax.xml.bind.ValidationException.class,org.resthub.common.exception.NotFoundException.class,org.resthub.common.exception.NotImplementedException.class})
public org.springframework.http.ResponseEntity<Object> handleCustomException(Exception ex,
org.springframework.web.context.request.WebRequest request)
protected org.springframework.http.ResponseEntity<Object> handleIllegalArgument(IllegalArgumentException ex, org.springframework.http.HttpHeaders headers, org.springframework.http.HttpStatus status, org.springframework.web.context.request.WebRequest request)
protected org.springframework.http.ResponseEntity<Object> handleValidation(ValidationException ex, org.springframework.http.HttpHeaders headers, org.springframework.http.HttpStatus status, org.springframework.web.context.request.WebRequest request)
protected org.springframework.http.ResponseEntity<Object> handleNotFound(NotFoundException ex, org.springframework.http.HttpHeaders headers, org.springframework.http.HttpStatus status, org.springframework.web.context.request.WebRequest request)
protected org.springframework.http.ResponseEntity<Object> handleNotImplemented(NotImplementedException ex, org.springframework.http.HttpHeaders headers, org.springframework.http.HttpStatus status, org.springframework.web.context.request.WebRequest request)
Copyright © 2009-2013. All Rights Reserved.