Class AdminRepositoryRestExceptionHandler
java.lang.Object
org.springframework.data.rest.webmvc.RepositoryRestExceptionHandler
org.tailormap.api.controller.admin.AdminRepositoryRestExceptionHandler
@ControllerAdvice(basePackageClasses=AdminRepositoryRestExceptionHandler.class)
public class AdminRepositoryRestExceptionHandler
extends org.springframework.data.rest.webmvc.RepositoryRestExceptionHandler
Also apply the RepositoryRestExceptionHandler from Spring Data REST to our custom controllers so
a RepositoryConstraintViolationException gets converted to JSON.
-
Constructor Summary
ConstructorDescriptionAdminRepositoryRestExceptionHandler
(org.springframework.context.MessageSource messageSource) -
Method Summary
-
Constructor Details
-
AdminRepositoryRestExceptionHandler
public AdminRepositoryRestExceptionHandler(org.springframework.context.MessageSource messageSource)
-