@ControllerAdvice
public class JpaHandlerExceptionHandler
extends org.springframework.web.servlet.mvc.method.annotation.ResponseEntityExceptionHandler
Constructor and Description |
---|
JpaHandlerExceptionHandler() |
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={org.hibernate.ObjectNotFoundException.class,javax.persistence.EntityNotFoundException.class,javax.persistence.EntityExistsException.class,org.springframework.dao.DataIntegrityViolationException.class}) public org.springframework.http.ResponseEntity<Object> handleCustomException(Exception ex, org.springframework.web.context.request.WebRequest request)
Copyright © 2009–2014. All rights reserved.