Bug 1106: Introduced OptimisticLockFailedException
[controller.git] / opendaylight / md-sal / sal-common-api / src / main / java / org / opendaylight / controller / md / sal / common / api / data / OptimisticLockFailedException.java
1 package org.opendaylight.controller.md.sal.common.api.data;
2
3 /**
4 *
5 * Failure of asynchronous transaction commit caused by failure
6 * of optimistic locking.
7 *
8 * This exception is raised and returned when transaction commit
9 * failed, because other transaction finished successfully
10 * and modified same data as failed transaction.
11 *
12 *  Clients may recover from this error condition by
13 *  retrieving current state and submitting new updated
14 *  transaction.
15 *
16 */
17 public class OptimisticLockFailedException extends TransactionCommitFailedException {
18
19     private static final long serialVersionUID = 1L;
20
21     protected OptimisticLockFailedException(final String message, final Throwable cause, final boolean enableSuppression,
22             final boolean writableStackTrace) {
23         super(message, cause, enableSuppression, writableStackTrace);
24     }
25
26     public OptimisticLockFailedException(final String message, final Throwable cause) {
27         super(message, cause);
28     }
29
30     public OptimisticLockFailedException(final String message) {
31         super(message);
32     }
33
34 }