- session.sendMessage(netconfMessage);\r
- logger.debug("Successfully send notification for deviceID: {}", deviceID);\r
+ try {\r
+ session.sendMessage(netconfMessage);\r
+ logger.debug("Successfully send notification for deviceID: {}", deviceID);\r
+ } catch (Exception e) {\r
+ logger.error("Failed to send notification. while posting got error. {}", e.toString());\r
+ throw new NetconfNotificationException("Exception while posting the netconf message", e);\r
+ }\r
+\r