File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
org.springframework.core/src/main/java/org/springframework/core Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -255,7 +255,8 @@ else if (Set.class.equals(collectionType) || Collection.class.equals(collectionT
255
255
return (Collection ) collectionType .newInstance ();
256
256
}
257
257
catch (Exception ex ) {
258
- throw new IllegalArgumentException ("Could not instantiate Collection type: " + collectionType .getName ());
258
+ throw new IllegalArgumentException ("Could not instantiate Collection type: " +
259
+ collectionType .getName (), ex );
259
260
}
260
261
}
261
262
}
@@ -322,7 +323,8 @@ else if (MultiValueMap.class.equals(mapType)) {
322
323
return (Map ) mapType .newInstance ();
323
324
}
324
325
catch (Exception ex ) {
325
- throw new IllegalArgumentException ("Could not instantiate Map type: " + mapType .getName ());
326
+ throw new IllegalArgumentException ("Could not instantiate Map type: " +
327
+ mapType .getName (), ex );
326
328
}
327
329
}
328
330
}
You can’t perform that action at this time.
0 commit comments