From 02d49417e41e087a032aa9e4913a05c8ca8a76ba Mon Sep 17 00:00:00 2001 From: Iwein Fuld Date: Thu, 12 Mar 2009 16:34:09 +0000 Subject: [PATCH] added MessageHandlingException to javadoc --- .../integration/message/MessageHandler.java | 17 +++++++++++------ 1 file changed, 11 insertions(+), 6 deletions(-) diff --git a/org.springframework.integration/src/main/java/org/springframework/integration/message/MessageHandler.java b/org.springframework.integration/src/main/java/org/springframework/integration/message/MessageHandler.java index 9a2f82d8c2..df7564f28c 100644 --- a/org.springframework.integration/src/main/java/org/springframework/integration/message/MessageHandler.java +++ b/org.springframework.integration/src/main/java/org/springframework/integration/message/MessageHandler.java @@ -30,18 +30,23 @@ public interface MessageHandler { * Handles the message if possible. If the handler cannot deal with the * message this will result in a MessageRejectedException e.g. * in case of a Selective Consumer. When a consumer tries to handle a - * message, but fails to do so, a MessageDeliveryException is - * thrown. In the first case a caller can decide to try other consumers, in - * the second case it is recommended to treat the message as tainted and go - * into an error scenario. + * message, but fails to do so, a MessageHandlingException is + * thrown. In case that the handling results in a message being sent failure + * to send that message will result in a + * MessageDeliveryException. In the first case a caller can + * decide to try other consumers, in the second case it is recommended to + * treat the message as tainted and go into an error scenario. * * @param message the message to be handled * * @throws MessageRejectedException if the handler doesn't select these * types of messages - * @throws MessageDeliveryException when something went wrong during the + * @throws MessageHandlingException when something went wrong during the * handling + * @throws MessageDeliveryException when this handler failed to deliver the + * reply related to the handling of the message */ - void handleMessage(Message message) throws MessageRejectedException, MessageDeliveryException; + void handleMessage(Message message) throws MessageRejectedException, + MessageHandlingException, MessageDeliveryException; }