INT-3821: Description for MessagingException ctor

JIRA: https://jira.spring.io/browse/INT-3821

The `MessagingException` provides an empty String for its `NestedRuntimeException`
for those ctors which are without `description` argument.

The `NestedRuntimeException` uses `NestedExceptionUtils.buildMessage` for `getMessage()` implementation
and the algorithm there is based on the `message != null` condition to build the first part of the nested
cascade. In the case of empty String we end up with useless ";" part in the StackTrace logs.

Fix Framework classes to use the `MessagingException` ctor with particular description.
This commit is contained in:
Artem Bilan
2015-09-08 22:55:52 -04:00
parent f607f83bf2
commit cb318f59ee
14 changed files with 46 additions and 27 deletions

View File

@@ -93,7 +93,7 @@ public abstract class SyslogReceivingChannelAdapterSupport extends MessageProduc
}
}
catch (Exception e) {
throw new MessagingException(message, e);
throw new MessagingException(message, "Failed to send Message", e);
}
}