Skip to content

Commit

Permalink
Minor polish in WebMvcConfigurationSupport
Browse files Browse the repository at this point in the history
  • Loading branch information
rstoyanchev committed Feb 9, 2012
1 parent f1ecd1c commit 21aed04
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@
* @author Rossen Stoyanchev
* @since 3.1
*/
public abstract class WebMvcConfigurationSupport implements ApplicationContextAware, ServletContextAware {
public class WebMvcConfigurationSupport implements ApplicationContextAware, ServletContextAware {

private ServletContext servletContext;

Expand Down Expand Up @@ -419,9 +419,9 @@ public Validator mvcValidator() {
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);
}
Expand Down Expand Up @@ -474,7 +474,7 @@ public SimpleControllerHandlerAdapter simpleControllerHandlerAdapter() {
* providing a list of resolvers.
*/
@Bean
public HandlerExceptionResolver handlerExceptionResolver() throws Exception {
public HandlerExceptionResolver handlerExceptionResolver() {
List<HandlerExceptionResolver> exceptionResolvers = new ArrayList<HandlerExceptionResolver>();
configureHandlerExceptionResolvers(exceptionResolvers);

Expand Down

0 comments on commit 21aed04

Please sign in to comment.