Add generated serialVersionUUID to exceptions
[ovsdb.git] / library / impl / src / main / java / org / opendaylight / ovsdb / lib / error / TableSchemaNotFoundException.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 package org.opendaylight.ovsdb.lib.error;
9
10 /**
11  * This exception is thrown when a TableSchema cannot be found.
12  */
13 public class TableSchemaNotFoundException extends RuntimeException {
14     private static final long serialVersionUID = -5030339562929850369L;
15
16     public TableSchemaNotFoundException(final String message) {
17         super(message);
18     }
19
20     public TableSchemaNotFoundException(final String message, final Throwable cause) {
21         super(message, cause);
22     }
23
24     public static String createMessage(final String tableName, final String schemaName) {
25         return "Unable to locate TableSchema for " +  tableName + " in " + schemaName;
26     }
27 }