2edf2614999776c32230d7f275d80430e692b31b
[controller.git] / opendaylight / config / config-api / src / main / java / org / opendaylight / controller / config / api / ConflictingVersionException.java
1 /*
2  * Copyright (c) 2013 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.config.api;
9
10 /**
11  * Can be thrown during
12  * {@link ConfigRegistry#commitConfig(javax.management.ObjectName)} to indicate
13  * that the transaction cannot be committed due to the fact that another
14  * transaction was committed after creating this transaction. Clients can create
15  * new transaction and merge the changes.
16  */
17 public class ConflictingVersionException extends Exception {
18     private static final long serialVersionUID = 1L;
19
20     public ConflictingVersionException() {
21         super();
22     }
23
24     public ConflictingVersionException(String message, Throwable cause) {
25         super(message, cause);
26     }
27
28     public ConflictingVersionException(String message) {
29         super(message);
30     }
31
32     public ConflictingVersionException(Throwable cause) {
33         super(cause);
34     }
35
36 }