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:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user