blob: cafce7ef50dd1a54003da480b3768e7ba48dec06 [file] [log] [blame]
Jonathan Hart4cb39882015-08-12 23:50:55 -04001/*
Brian O'Connora09fe5b2017-08-03 21:12:30 -07002 * Copyright 2015-present Open Networking Foundation
Jonathan Hart4cb39882015-08-12 23:50:55 -04003 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
16
Ray Milkey6c013742017-08-15 10:16:43 -070017package org.onosproject.net.config;
Jonathan Hart4cb39882015-08-12 23:50:55 -040018
Thomas Vachuska4c571ae2015-09-10 16:31:59 -070019import com.google.common.annotations.Beta;
20
Jonathan Hart4cb39882015-08-12 23:50:55 -040021/**
22 * Signals that an error was encountered while reading/writing configuration.
23 */
Ray Milkey6c013742017-08-15 10:16:43 -070024
Thomas Vachuska4c571ae2015-09-10 16:31:59 -070025@Beta
Jonathan Hart4cb39882015-08-12 23:50:55 -040026public class ConfigException extends Exception {
27
28 /**
29 * Constructs a new ConfigException with the given message.
30 *
31 * @param message message
32 */
33 public ConfigException(String message) {
34 super(message);
35 }
36
37 /**
38 * Constructs a new ConfigException with the given message and cause.
39 *
40 * @param message message
41 * @param cause cause
42 */
43 public ConfigException(String message, Throwable cause) {
44 super(message, cause);
45 }
46}