avoid double ConversionFailedException nesting

git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@3505 50f2f4bb-b051-0410-bef5-90022cba6387
This commit is contained in:
Juergen Hoeller
2010-07-26 20:33:34 +00:00
parent 085449cf1e
commit db2a10a1eb
2 changed files with 7 additions and 10 deletions
@@ -35,6 +35,9 @@ abstract class ConversionUtils {
try {
return converter.convert(source, sourceType, targetType);
}
catch (ConversionFailedException ex) {
throw ex;
}
catch (Exception ex) {
throw new ConversionFailedException(sourceType, targetType, source, ex);
}