@@ -294,7 +294,7 @@ private <T, V> List<V> decodeArray(
294294 try {
295295 constructor = cls .getConstructor (Integer .TYPE );
296296 } catch (NoSuchMethodException e ) {
297- throw new DeserializationException ("No constructor found for the List: " + e );
297+ throw new DeserializationException ("No constructor found for the List: " + e . getMessage (), e );
298298 }
299299 Object [] parameters = {size };
300300 try {
@@ -304,7 +304,7 @@ private <T, V> List<V> decodeArray(
304304 } catch (InstantiationException |
305305 IllegalAccessException |
306306 InvocationTargetException e ) {
307- throw new DeserializationException ("Error creating list: " + e );
307+ throw new DeserializationException ("Error creating list: " + e . getMessage (), e );
308308 }
309309 }
310310
@@ -355,7 +355,7 @@ private <T, V> Map<String, V> decodeMapIntoMap(
355355 try {
356356 constructor = cls .getConstructor (Integer .TYPE );
357357 } catch (NoSuchMethodException e ) {
358- throw new DeserializationException ("No constructor found for the Map: " + e );
358+ throw new DeserializationException ("No constructor found for the Map: " + e . getMessage (), e );
359359 }
360360 Object [] parameters = {size };
361361 try {
@@ -365,7 +365,7 @@ private <T, V> Map<String, V> decodeMapIntoMap(
365365 } catch (InstantiationException |
366366 IllegalAccessException |
367367 InvocationTargetException e ) {
368- throw new DeserializationException ("Error creating map: " + e );
368+ throw new DeserializationException ("Error creating map: " + e . getMessage (), e );
369369 }
370370 }
371371
@@ -437,7 +437,7 @@ private <T> Object decodeMapIntoObject(int size, Class<T> cls)
437437 } catch (InstantiationException |
438438 IllegalAccessException |
439439 InvocationTargetException e ) {
440- throw new DeserializationException ("Error creating object: " + e );
440+ throw new DeserializationException ("Error creating object: " + e . getMessage (), e );
441441 }
442442 }
443443
0 commit comments