Remove DocumentedException.ErrorSeverity
[netconf.git] / netconf / mdsal-netconf-connector / src / main / java / org / opendaylight / netconf / mdsal / connector / ops / Unlock.java
index 3690e1cc175cfadd4205d16d71f7211a8de2c1bf..5145cc2bda0ae5f0ff741906cad7d6bcc0f59420 100644 (file)
@@ -11,6 +11,7 @@ import org.opendaylight.netconf.api.DocumentedException;
 import org.opendaylight.netconf.api.xml.XmlElement;
 import org.opendaylight.netconf.api.xml.XmlNetconfConstants;
 import org.opendaylight.netconf.util.mapping.AbstractSingletonNetconfOperation;
+import org.opendaylight.yangtools.yang.common.ErrorSeverity;
 import org.slf4j.Logger;
 import org.slf4j.LoggerFactory;
 import org.w3c.dom.Document;
@@ -21,9 +22,7 @@ import org.w3c.dom.Element;
    operations/UnLock.java
 */
 public class Unlock extends AbstractSingletonNetconfOperation {
-
     private static final Logger LOG = LoggerFactory.getLogger(Unlock.class);
-
     private static final String OPERATION_NAME = "unlock";
 
     public Unlock(final String netconfSessionIdForReporting) {
@@ -41,12 +40,11 @@ public class Unlock extends AbstractSingletonNetconfOperation {
 
         throw new DocumentedException("Unable to unlock " + targetDatastore + " datastore",
                 DocumentedException.ErrorType.APPLICATION, DocumentedException.ErrorTag.OPERATION_NOT_SUPPORTED,
-                DocumentedException.ErrorSeverity.ERROR);
+                ErrorSeverity.ERROR);
     }
 
     @Override
     protected String getOperationName() {
         return OPERATION_NAME;
     }
-
 }