From 21aed042eac791fbfd49da4f703b5b8e5e84422a Mon Sep 17 00:00:00 2001 From: Rossen Stoyanchev Date: Thu, 9 Feb 2012 16:54:38 -0500 Subject: [PATCH] Minor polish in WebMvcConfigurationSupport --- .../config/annotation/WebMvcConfigurationSupport.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/org.springframework.web.servlet/src/main/java/org/springframework/web/servlet/config/annotation/WebMvcConfigurationSupport.java b/org.springframework.web.servlet/src/main/java/org/springframework/web/servlet/config/annotation/WebMvcConfigurationSupport.java index 1fdaa0e22d..03c8480bba 100644 --- a/org.springframework.web.servlet/src/main/java/org/springframework/web/servlet/config/annotation/WebMvcConfigurationSupport.java +++ b/org.springframework.web.servlet/src/main/java/org/springframework/web/servlet/config/annotation/WebMvcConfigurationSupport.java @@ -134,7 +134,7 @@ import org.springframework.web.servlet.mvc.support.DefaultHandlerExceptionResolv * @author Rossen Stoyanchev * @since 3.1 */ -public abstract class WebMvcConfigurationSupport implements ApplicationContextAware, ServletContextAware { +public class WebMvcConfigurationSupport implements ApplicationContextAware, ServletContextAware { private ServletContext servletContext; @@ -419,9 +419,9 @@ public abstract class WebMvcConfigurationSupport implements ApplicationContextAw String className = "org.springframework.validation.beanvalidation.LocalValidatorFactoryBean"; clazz = ClassUtils.forName(className, WebMvcConfigurationSupport.class.getClassLoader()); } catch (ClassNotFoundException e) { - throw new BeanInitializationException("Could not find default validator"); + throw new BeanInitializationException("Could not find default validator", e); } catch (LinkageError e) { - throw new BeanInitializationException("Could not find default validator"); + throw new BeanInitializationException("Could not find default validator", e); } validator = (Validator) BeanUtils.instantiate(clazz); } @@ -474,7 +474,7 @@ public abstract class WebMvcConfigurationSupport implements ApplicationContextAw * providing a list of resolvers. */ @Bean - public HandlerExceptionResolver handlerExceptionResolver() throws Exception { + public HandlerExceptionResolver handlerExceptionResolver() { List exceptionResolvers = new ArrayList(); configureHandlerExceptionResolvers(exceptionResolvers);