BUG-5280: introduce Request/Response and related concepts
[controller.git] / opendaylight / md-sal / cds-access-api / src / main / java / org / opendaylight / controller / cluster / access / FutureVersionException.java
1 /*
2  * Copyright (c) 2016 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.cluster.access;
9
10 import com.google.common.annotations.Beta;
11
12 /**
13  * Exception thrown from {@link ABIVersion#valueOf(short)} when the specified version is too new to be supported
14  * by the codebase.
15  *
16  * @author Robert Varga
17  */
18 @Beta
19 public final class FutureVersionException extends AbstractVersionException {
20     private static final long serialVersionUID = 1L;
21
22     FutureVersionException(final short version, ABIVersion closest) {
23         super("Version " + Short.toUnsignedInt(version) + " is too new", version, closest);
24     }
25 }