@@ -341,7 +341,7 @@ public Object createFromString(DeserializationContext ctxt, String value) throws
341
341
if (_fromStringCreator != null ) {
342
342
try {
343
343
return _fromStringCreator .call1 (value );
344
- } catch (Throwable t ) {
344
+ } catch (Exception t ) {
345
345
return ctxt .handleInstantiationProblem (_fromStringCreator .getDeclaringClass (),
346
346
value , rewrapCtorProblem (ctxt , t ));
347
347
}
@@ -357,7 +357,7 @@ public Object createFromInt(DeserializationContext ctxt, int value) throws IOExc
357
357
Object arg = Integer .valueOf (value );
358
358
try {
359
359
return _fromIntCreator .call1 (arg );
360
- } catch (Throwable t0 ) {
360
+ } catch (Exception t0 ) {
361
361
return ctxt .handleInstantiationProblem (_fromIntCreator .getDeclaringClass (),
362
362
arg , rewrapCtorProblem (ctxt , t0 ));
363
363
}
@@ -367,7 +367,7 @@ public Object createFromInt(DeserializationContext ctxt, int value) throws IOExc
367
367
Object arg = Long .valueOf (value );
368
368
try {
369
369
return _fromLongCreator .call1 (arg );
370
- } catch (Throwable t0 ) {
370
+ } catch (Exception t0 ) {
371
371
return ctxt .handleInstantiationProblem (_fromLongCreator .getDeclaringClass (),
372
372
arg , rewrapCtorProblem (ctxt , t0 ));
373
373
}
@@ -377,7 +377,7 @@ public Object createFromInt(DeserializationContext ctxt, int value) throws IOExc
377
377
Object arg = BigInteger .valueOf (value );
378
378
try {
379
379
return _fromBigIntegerCreator .call1 (arg );
380
- } catch (Throwable t0 ) {
380
+ } catch (Exception t0 ) {
381
381
return ctxt .handleInstantiationProblem (_fromBigIntegerCreator .getDeclaringClass (),
382
382
arg , rewrapCtorProblem (ctxt , t0 )
383
383
);
@@ -394,7 +394,7 @@ public Object createFromLong(DeserializationContext ctxt, long value) throws IOE
394
394
Long arg = Long .valueOf (value );
395
395
try {
396
396
return _fromLongCreator .call1 (arg );
397
- } catch (Throwable t0 ) {
397
+ } catch (Exception t0 ) {
398
398
return ctxt .handleInstantiationProblem (_fromLongCreator .getDeclaringClass (),
399
399
arg , rewrapCtorProblem (ctxt , t0 )
400
400
);
@@ -405,7 +405,7 @@ arg, rewrapCtorProblem(ctxt, t0)
405
405
BigInteger arg = BigInteger .valueOf (value );
406
406
try {
407
407
return _fromBigIntegerCreator .call1 (arg );
408
- } catch (Throwable t0 ) {
408
+ } catch (Exception t0 ) {
409
409
return ctxt .handleInstantiationProblem (_fromBigIntegerCreator .getDeclaringClass (),
410
410
arg , rewrapCtorProblem (ctxt , t0 )
411
411
);
@@ -421,7 +421,7 @@ public Object createFromBigInteger(DeserializationContext ctxt, BigInteger value
421
421
if (_fromBigIntegerCreator != null ) {
422
422
try {
423
423
return _fromBigIntegerCreator .call1 (value );
424
- } catch (Throwable t ) {
424
+ } catch (Exception t ) {
425
425
return ctxt .handleInstantiationProblem (_fromBigIntegerCreator .getDeclaringClass (),
426
426
value , rewrapCtorProblem (ctxt , t )
427
427
);
@@ -438,7 +438,7 @@ public Object createFromDouble(DeserializationContext ctxt, double value) throws
438
438
Double arg = Double .valueOf (value );
439
439
try {
440
440
return _fromDoubleCreator .call1 (arg );
441
- } catch (Throwable t0 ) {
441
+ } catch (Exception t0 ) {
442
442
return ctxt .handleInstantiationProblem (_fromDoubleCreator .getDeclaringClass (),
443
443
arg , rewrapCtorProblem (ctxt , t0 ));
444
444
}
@@ -448,7 +448,7 @@ public Object createFromDouble(DeserializationContext ctxt, double value) throws
448
448
BigDecimal arg = BigDecimal .valueOf (value );
449
449
try {
450
450
return _fromBigDecimalCreator .call1 (arg );
451
- } catch (Throwable t0 ) {
451
+ } catch (Exception t0 ) {
452
452
return ctxt .handleInstantiationProblem (_fromBigDecimalCreator .getDeclaringClass (),
453
453
arg , rewrapCtorProblem (ctxt , t0 ));
454
454
}
@@ -463,7 +463,7 @@ public Object createFromBigDecimal(DeserializationContext ctxt, BigDecimal value
463
463
if (_fromBigDecimalCreator != null ) {
464
464
try {
465
465
return _fromBigDecimalCreator .call1 (value );
466
- } catch (Throwable t ) {
466
+ } catch (Exception t ) {
467
467
return ctxt .handleInstantiationProblem (_fromBigDecimalCreator .getDeclaringClass (),
468
468
value , rewrapCtorProblem (ctxt , t )
469
469
);
@@ -479,7 +479,7 @@ value, rewrapCtorProblem(ctxt, t)
479
479
if (dbl != null ) {
480
480
try {
481
481
return _fromDoubleCreator .call1 (dbl );
482
- } catch (Throwable t0 ) {
482
+ } catch (Exception t0 ) {
483
483
return ctxt .handleInstantiationProblem (_fromDoubleCreator .getDeclaringClass (),
484
484
dbl , rewrapCtorProblem (ctxt , t0 ));
485
485
}
@@ -507,7 +507,7 @@ public Object createFromBoolean(DeserializationContext ctxt, boolean value) thro
507
507
final Boolean arg = Boolean .valueOf (value );
508
508
try {
509
509
return _fromBooleanCreator .call1 (arg );
510
- } catch (Throwable t0 ) {
510
+ } catch (Exception t0 ) {
511
511
return ctxt .handleInstantiationProblem (_fromBooleanCreator .getDeclaringClass (),
512
512
arg , rewrapCtorProblem (ctxt , t0 ));
513
513
}
@@ -654,7 +654,7 @@ private Object _createUsingDelegate(AnnotatedWithParams delegateCreator,
654
654
}
655
655
// and then try calling with full set of arguments
656
656
return delegateCreator .call (args );
657
- } catch (Throwable t ) {
657
+ } catch (Exception t ) {
658
658
throw rewrapCtorProblem (ctxt , t );
659
659
}
660
660
}
0 commit comments