Class RepositoryRestExceptionHandler
java.lang.Object
org.springframework.data.rest.webmvc.RepositoryRestExceptionHandler
@ControllerAdvice(basePackageClasses=RepositoryRestExceptionHandler.class)
public class RepositoryRestExceptionHandler
extends Object
Exception handler for Spring Data REST controllers.
- Author:
- Thibaud Lepretre, Oliver Gierke
-
Constructor Summary
ConstructorDescriptionRepositoryRestExceptionHandler
(org.springframework.context.MessageSource messageSource) Creates a newRepositoryRestExceptionHandler
using the givenMessageSource
. -
Method Summary
-
Constructor Details
-
RepositoryRestExceptionHandler
public RepositoryRestExceptionHandler(org.springframework.context.MessageSource messageSource) Creates a newRepositoryRestExceptionHandler
using the givenMessageSource
.- Parameters:
messageSource
- must not be null.
-