@@ -431,7 +431,9 @@ private void recoverExchanges() {
431
431
try {
432
432
x .recover ();
433
433
} catch (Exception cause ) {
434
- TopologyRecoveryException e = new TopologyRecoveryException ("Caught an exception while recovering exchange " + x .getName (), cause );
434
+ final String message = "Caught an exception while recovering exchange " + x .getName () +
435
+ ": " + cause .getMessage ();
436
+ TopologyRecoveryException e = new TopologyRecoveryException (message , cause );
435
437
this .getExceptionHandler ().handleTopologyRecoveryException (delegate , x .getDelegateChannel (), e );
436
438
}
437
439
}
@@ -454,7 +456,9 @@ private void recoverQueues() {
454
456
this .propagateQueueNameChangeToConsumers (oldName , newName );
455
457
}
456
458
} catch (Exception cause ) {
457
- TopologyRecoveryException e = new TopologyRecoveryException ("Caught an exception while recovering queue " + oldName , cause );
459
+ final String message = "Caught an exception while recovering queue " + oldName +
460
+ ": " + cause .getMessage ();
461
+ TopologyRecoveryException e = new TopologyRecoveryException (message , cause );
458
462
this .getExceptionHandler ().handleTopologyRecoveryException (delegate , q .getDelegateChannel (), e );
459
463
}
460
464
}
@@ -465,7 +469,8 @@ private void recoverBindings() {
465
469
try {
466
470
b .recover ();
467
471
} catch (Exception cause ) {
468
- String message = "Caught an exception while recovering binding between " + b .getSource () + " and " + b .getDestination ();
472
+ String message = "Caught an exception while recovering binding between " + b .getSource () +
473
+ " and " + b .getDestination () + ": " + cause .getMessage ();
469
474
TopologyRecoveryException e = new TopologyRecoveryException (message , cause );
470
475
this .getExceptionHandler ().handleTopologyRecoveryException (delegate , b .getDelegateChannel (), e );
471
476
}
@@ -486,7 +491,9 @@ private void recoverConsumers() {
486
491
this .consumers .put (newTag , consumer );
487
492
}
488
493
} catch (Exception cause ) {
489
- TopologyRecoveryException e = new TopologyRecoveryException ("Caught an exception while recovering consumer " + tag , cause );
494
+ final String message = "Caught an exception while recovering consumer " + tag +
495
+ ": " + cause .getMessage ();
496
+ TopologyRecoveryException e = new TopologyRecoveryException (message , cause );
490
497
this .getExceptionHandler ().handleTopologyRecoveryException (delegate , consumer .getDelegateChannel (), e );
491
498
}
492
499
}
0 commit comments