Specialize protocol-framework to netconf
[netconf.git] / netconf / netconf-api / src / main / java / org / opendaylight / netconf / api / NetconfTerminationReason.java
index 697acdf694d2b7c31ab24d90ce3d65144ab8dd27..62024fa1b1756f7bf3d1ef5d1dd84fa74da5b741 100644 (file)
@@ -5,12 +5,9 @@
  * terms of the Eclipse Public License v1.0 which accompanies this distribution,
  * and is available at http://www.eclipse.org/legal/epl-v10.html
  */
-
 package org.opendaylight.netconf.api;
 
-import org.opendaylight.protocol.framework.TerminationReason;
-
-public class NetconfTerminationReason implements TerminationReason {
+public class NetconfTerminationReason {
 
     private final String reason;
 
@@ -18,7 +15,10 @@ public class NetconfTerminationReason implements TerminationReason {
         this.reason = reason;
     }
 
-    @Override
+    /**
+     * Get cause of session termination.
+     * @return human-readable cause.
+     */
     public String getErrorMessage() {
         return reason;
     }