Rework TypedRowInvocationHandler invocation path
[ovsdb.git] / library / impl / src / main / java / org / opendaylight / ovsdb / lib / error / SchemaVersionMismatchException.java
1 /*
2  * Copyright (c) 2014, 2015 Red Hat, 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
9 package org.opendaylight.ovsdb.lib.error;
10
11 import com.google.common.collect.Range;
12 import org.opendaylight.ovsdb.lib.notation.Version;
13
14 /**
15  * This exception is used when the a table or row is accessed though a typed interface
16  * and the version requirements are not met.
17  */
18 public class SchemaVersionMismatchException extends RuntimeException {
19     private static final long serialVersionUID = -5194270510726950745L;
20
21     public SchemaVersionMismatchException(final Version schemaVersion, final Range<Version> range) {
22         super("The schema version used to access the table/column (" + schemaVersion + ") does not match the required"
23                 + " version range " + range);
24     }
25 }