Adopt odlparent-10.0.0/yangtools-8.0.0-SNAPSHOT
[mdsal.git] / common / mdsal-common-api / src / main / java / org / opendaylight / mdsal / common / api / DataValidationFailedException.java
index a928582ac0faa78aea4a9a7fa1ca5ec3c10f71c5..526ba6d028ac20e7280f41ed9e98823ce3833f15 100644 (file)
@@ -10,7 +10,8 @@ package org.opendaylight.mdsal.common.api;
 import static java.util.Objects.requireNonNull;
 
 import org.opendaylight.yangtools.concepts.HierarchicalIdentifier;
-import org.opendaylight.yangtools.yang.common.RpcError.ErrorType;
+import org.opendaylight.yangtools.yang.common.ErrorTag;
+import org.opendaylight.yangtools.yang.common.ErrorType;
 import org.opendaylight.yangtools.yang.common.RpcResultBuilder;
 
 /**
@@ -29,7 +30,7 @@ public class DataValidationFailedException extends TransactionCommitFailedExcept
 
     public <P extends HierarchicalIdentifier<P>> DataValidationFailedException(final Class<P> pathType, final P path,
             final String message, final Throwable cause) {
-        super(message, cause, RpcResultBuilder.newError(ErrorType.APPLICATION, "invalid-value", message, null,
+        super(message, cause, RpcResultBuilder.newError(ErrorType.APPLICATION, ErrorTag.INVALID_VALUE, message, null,
             path != null ? path.toString() : null, cause));
         this.pathType = requireNonNull(pathType, "path type must not be null");
         this.path = requireNonNull(path, "path must not be null.");