Merge "Fixup Augmentable and Identifiable methods changing"
[netconf.git] / netconf / netconf-topology-singleton / src / main / java / org / opendaylight / netconf / topology / singleton / messages / transactions / SubmitFailedReply.java
index fe077e2fb5d2bfde5b5a11c66c1214681c5b69ae..7dfc19c0c6e79a000e9cb9db43c83e5e4d360b3b 100644 (file)
@@ -11,8 +11,18 @@ package org.opendaylight.netconf.topology.singleton.messages.transactions;
 import java.io.Serializable;
 
 /**
- * Message sent from master back to the slave when submit is not performed, tx is closed
+ * Message sent from master back to the slave when submit fails, with the offending exception attached.
  */
 public class SubmitFailedReply implements Serializable {
     private static final long serialVersionUID = 1L;
+
+    private final Throwable throwable;
+
+    public SubmitFailedReply(final Throwable throwable) {
+        this.throwable = throwable;
+    }
+
+    public Throwable getThrowable() {
+        return throwable;
+    }
 }