INT-1491 added filter name to rejection Exception description

This commit is contained in:
Mark Fisher
2010-10-08 10:45:32 -04:00
parent 72c372ee43
commit f89862cf1d

View File

@@ -107,7 +107,7 @@ public class MessageFilter extends AbstractReplyProducingMessageHandler {
this.getMessagingTemplate().send(this.discardChannel, message);
}
if (this.throwExceptionOnRejection) {
throw new MessageRejectedException(message);
throw new MessageRejectedException(message, "MessageFilter '" + this.getComponentName() + "' rejected Message");
}
return null;
}