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 Details

    • RepositoryRestExceptionHandler

      public RepositoryRestExceptionHandler(org.springframework.context.MessageSource messageSource)
      Creates a new RepositoryRestExceptionHandler using the given MessageSource.
      Parameters:
      messageSource - must not be null.