blob: 2e1c922d13aa8fe4d9813afcb2df59c110643745 [file] [log] [blame]
Jordan Halterman01f3bdd2019-04-17 11:05:16 -07001/*
2 * Copyright 2015-present Open Networking Foundation
3 *
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
17package org.onosproject.net.flow;
18
19/**
20 * Top level exception for FlowRuleStore failures.
21 */
22@SuppressWarnings("serial")
23public class FlowRuleStoreException extends RuntimeException {
24 public FlowRuleStoreException() {
25 }
26
27 public FlowRuleStoreException(String message) {
28 super(message);
29 }
30
31 public FlowRuleStoreException(Throwable t) {
32 super(t);
33 }
34
35 /**
36 * Flowrule store operation timeout.
37 */
38 public static class Timeout extends FlowRuleStoreException {
39 }
40
41 /**
42 * Flowrule store operation interrupted.
43 */
44 public static class Interrupted extends FlowRuleStoreException {
45 }
46}