avoid double ConversionFailedException nesting

This commit is contained in:
Juergen Hoeller
2010-07-26 20:33:34 +00:00
parent f04febaf2d
commit 8e5c033446
2 changed files with 7 additions and 10 deletions

View File

@@ -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);
}