@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) |
handleBindException, handleConversionNotSupported, handleException, handleExceptionInternal, handleHttpMediaTypeNotAcceptable, handleHttpMediaTypeNotSupported, handleHttpMessageNotReadable, handleHttpMessageNotWritable, handleHttpRequestMethodNotSupported, handleMethodArgumentNotValid, handleMissingServletRequestParameter, handleMissingServletRequestPart, handleNoHandlerFoundException, handleNoSuchRequestHandlingMethod, handleServletRequestBindingException, handleTypeMismatch
@ExceptionHandler(value={java.lang.IllegalArgumentException.class,javax.xml.bind.ValidationException.class,NotFoundException.class,NotImplementedException.class}) public org.springframework.http.ResponseEntity<Object> handleCustomException(Exception ex, org.springframework.web.context.request.WebRequest request)
Copyright © 2009–2014. All rights reserved.