0491ece51031539f81d438c0a8f0d6107e46cce3
[ovsdb.git] / library / impl / src / main / java / org / opendaylight / ovsdb / lib / error / ColumnSchemaNotFoundException.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 /**
12  * This exception is thrown when a ColumnSchema cannot be found.
13  */
14 public class ColumnSchemaNotFoundException extends RuntimeException {
15
16     public ColumnSchemaNotFoundException(String message) {
17         super(message);
18     }
19
20     public ColumnSchemaNotFoundException(String message, Throwable cause) {
21         super(message, cause);
22     }
23
24     public static String createMessage(String columnName, String tableName) {
25         return "Unable to locate ColumnSchema for " +  columnName + " in " + tableName;
26     }
27
28 }