From: Juergen H. <jho...@us...> - 2008-02-29 16:33:30
|
Update of /cvsroot/springframework/spring/src/org/springframework/beans/factory/xml In directory sc8-pr-cvs8.sourceforge.net:/tmp/cvs-serv5479/src/org/springframework/beans/factory/xml Modified Files: DefaultNamespaceHandlerResolver.java Log Message: set full root cause for IllegalStateException Index: DefaultNamespaceHandlerResolver.java =================================================================== RCS file: /cvsroot/springframework/spring/src/org/springframework/beans/factory/xml/DefaultNamespaceHandlerResolver.java,v retrieving revision 1.22 retrieving revision 1.23 diff -C2 -d -r1.22 -r1.23 *** DefaultNamespaceHandlerResolver.java 22 Oct 2007 11:22:22 -0000 1.22 --- DefaultNamespaceHandlerResolver.java 29 Feb 2008 16:33:26 -0000 1.23 *************** *** 1,4 **** /* ! * Copyright 2002-2007 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); --- 1,4 ---- /* ! * Copyright 2002-2008 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); *************** *** 32,36 **** /** ! * Default implementation of the {@link NamespaceHandler} interface. * Resolves namespace URIs to implementation classes based on the mappings * contained in mapping file. --- 32,36 ---- /** ! * Default implementation of the {@link NamespaceHandlerResolver} interface. * Resolves namespace URIs to implementation classes based on the mappings * contained in mapping file. *************** *** 156,162 **** } catch (IOException ex) { ! throw new IllegalStateException( ! "Unable to load NamespaceHandler mappings from location [" + ! handlerMappingsLocation + "]. Root cause: " + ex); } } --- 156,163 ---- } catch (IOException ex) { ! IllegalStateException ise = new IllegalStateException( ! "Unable to load NamespaceHandler mappings from location [" + this.handlerMappingsLocation + "]"); ! ise.initCause(ex); ! throw ise; } } |