X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?p=controller.git;a=blobdiff_plain;f=opendaylight%2Fmd-sal%2Fsal-common-api%2Fsrc%2Fmain%2Fjava%2Forg%2Fopendaylight%2Fcontroller%2Fmd%2Fsal%2Fcommon%2Fapi%2Fdata%2FDataValidationFailedException.java;h=16c956caf4d7bd9c97cb6abad11e35dfd79e89d6;hp=c59c12ec5c3c59314d94094d421ab45c96deb4cb;hb=HEAD;hpb=8ad0b28e56c6d0a1ce5cef45fae22d6fdea7f976 diff --git a/opendaylight/md-sal/sal-common-api/src/main/java/org/opendaylight/controller/md/sal/common/api/data/DataValidationFailedException.java b/opendaylight/md-sal/sal-common-api/src/main/java/org/opendaylight/controller/md/sal/common/api/data/DataValidationFailedException.java deleted file mode 100644 index c59c12ec5c..0000000000 --- a/opendaylight/md-sal/sal-common-api/src/main/java/org/opendaylight/controller/md/sal/common/api/data/DataValidationFailedException.java +++ /dev/null @@ -1,52 +0,0 @@ -/* - * Copyright (c) 2014 Cisco Systems, Inc. and others. All rights reserved. - * - * This program and the accompanying materials are made available under the - * 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.controller.md.sal.common.api.data; - -import org.opendaylight.yangtools.concepts.Path; - -import com.google.common.base.Preconditions; - -/** - * - * Failure of asynchronous transaction commit caused by invalid data. - * - * This exception is raised and returned when transaction commit - * failed, because other data submitted via transactions - * - * Clients usually are not able recover from this error condition by - * retrieving same transaction, since data introduced by this transaction - * are invalid. - * - */ -public class DataValidationFailedException extends TransactionCommitFailedException { - - private static final long serialVersionUID = 1L; - - private Path path; - - private Class> pathType; - - public

> DataValidationFailedException(final Class

pathType,final P path, final String message, final Throwable cause) { - super(message, cause); - this.pathType = Preconditions.checkNotNull(pathType, "path type must not be null"); - this.path = Preconditions.checkNotNull(path,"path must not be null."); - } - - public

> DataValidationFailedException(final Class

pathType,final P path,final String message) { - this(pathType,path,message,null); - } - - public final Path getPath() { - return path; - } - - public final Class> getPathType() { - return pathType; - } - -}