Merge "BUG-704 Remove pax from netconf identity-ref test."
[controller.git] / opendaylight / md-sal / sal-dom-broker / src / main / java / org / opendaylight / controller / md / sal / dom / store / impl / DataPreconditionFailedException.java
1 /*
2  * Copyright (c) 2014 Cisco Systems, Inc. and others.  All rights reserved.
3  *
4  * This program and the accompanying materials are made available under the
5  * terms of the Eclipse Public License v1.0 which accompanies this distribution,
6  * and is available at http://www.eclipse.org/legal/epl-v10.html
7  */
8 package org.opendaylight.controller.md.sal.dom.store.impl;
9
10 import org.opendaylight.yangtools.yang.data.api.InstanceIdentifier;
11
12 public class DataPreconditionFailedException extends Exception {
13
14     /**
15      *
16      */
17     private static final long serialVersionUID = 596430355175413427L;
18     private final InstanceIdentifier path;
19
20     public DataPreconditionFailedException(final InstanceIdentifier path) {
21         this.path = path;
22     }
23
24     public DataPreconditionFailedException(final InstanceIdentifier path,final String message) {
25         super(message);
26         this.path = path;
27     }
28
29
30     public DataPreconditionFailedException(final InstanceIdentifier path,final Throwable cause) {
31         super(cause);
32         this.path = path;
33     }
34
35     public DataPreconditionFailedException(final InstanceIdentifier path,final String message, final Throwable cause) {
36         super(message, cause);
37         this.path = path;
38     }
39
40     public DataPreconditionFailedException(final InstanceIdentifier path,final String message, final Throwable cause, final boolean enableSuppression,
41             final boolean writableStackTrace) {
42         super(message, cause, enableSuppression, writableStackTrace);
43         this.path = path;
44     }
45
46     public InstanceIdentifier getPath() {
47         return path;
48     }
49
50 }