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
(MessageSource messageSource) Creates a newRepositoryRestExceptionHandler
using the givenMessageSource
. -
Method Summary
-
Constructor Details
-
RepositoryRestExceptionHandler
Creates a newRepositoryRestExceptionHandler
using the givenMessageSource
.- Parameters:
messageSource
- must not be null.
-