Madan Jampani | 08822c4 | 2014-11-04 17:17:46 -0800 | [diff] [blame] | 1 | package org.onlab.onos.store.service; |
| 2 | |
| 3 | /** |
| 4 | * Exception that indicates a precondition failure. |
Madan Jampani | 37c2e70 | 2014-11-04 18:11:10 -0800 | [diff] [blame] | 5 | * Scenarios that can cause this exception: |
| 6 | * <ul> |
Madan Jampani | 08822c4 | 2014-11-04 17:17:46 -0800 | [diff] [blame] | 7 | * <li>An operation that attempts to write a new value iff the current value is equal |
| 8 | * to some specified value.</li> |
| 9 | * <li>An operation that attempts to write a new value iff the current version |
| 10 | * matches a specified value</li> |
| 11 | * </ul> |
| 12 | */ |
| 13 | @SuppressWarnings("serial") |
| 14 | public class PreconditionFailedException extends DatabaseException { |
Madan Jampani | 37c2e70 | 2014-11-04 18:11:10 -0800 | [diff] [blame] | 15 | } |