Throw exception instead of returning error code from send function.
Change-Id: I87d2805dfb7f8757c0366600d8937023edddf54a
Signed-off-by: Tom Joseph <tomjoseph@in.ibm.com>
diff --git a/message_handler.hpp b/message_handler.hpp
index 0f553b7..882a077 100644
--- a/message_handler.hpp
+++ b/message_handler.hpp
@@ -50,17 +50,14 @@
*/
std::unique_ptr<Message> executeCommand(Message& inMessage);
- /*
- * @brief Send the outgoing message
+ /** @brief Send the outgoing message
*
- * The payload in the outgoing message is flattened and sent out on the
- * socket
+ * The payload in the outgoing message is flattened and sent out on the
+ * socket
*
- * @param[in] outMessage - Outgoing Message
- *
- * @return Zero on success and <0 on failure
+ * @param[in] outMessage - Outgoing Message
*/
- int send(Message& outMessage);
+ void send(Message& outMessage);
/** @brief Set socket channel in session object */
void setChannelInSession() const;