2 * Copyright (c) 2014, 2015 Red Hat, Inc. and others. All rights reserved.
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
9 package org.opendaylight.ovsdb.lib.error;
11 import com.google.common.collect.Range;
12 import org.opendaylight.ovsdb.lib.notation.Version;
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.
18 public class SchemaVersionMismatchException extends RuntimeException {
19 private static final long serialVersionUID = -5194270510726950745L;
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);