blob: fc3e0a75b635db35346fd5e7f0b96630e6913632 [file] [log] [blame]
tom7ef8ff92014-09-17 13:08:06 -07001/**
2 * Copyright 2011, Big Switch Networks, Inc.
3 * Originally created by David Erickson, Stanford University
4 *
5 * Licensed under the Apache License, Version 2.0 (the "License"); you may
6 * not use this file except in compliance with the License. You may obtain
7 * a copy of the License at
8 *
9 * http://www.apache.org/licenses/LICENSE-2.0
10 *
11 * Unless required by applicable law or agreed to in writing, software
12 * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
13 * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
14 * License for the specific language governing permissions and limitations
15 * under the License.
16 **/
17
tom9c94c5b2014-09-17 13:14:42 -070018package org.onlab.onos.openflow.controller.driver;
tom7ef8ff92014-09-17 13:08:06 -070019
20/**
21 * This exception indicates an error or unexpected message during
22 * message handling. E.g., if an OFMessage is received that is illegal or
23 * unexpected given the current handshake state.
24 *
25 * We don't allow wrapping other exception in a switch state exception. We
26 * only log the SwitchStateExceptions message so the causing exceptions
27 * stack trace is generally not available.
28 *
29 */
30public class SwitchStateException extends Exception {
31
32 private static final long serialVersionUID = 9153954512470002631L;
33
34 public SwitchStateException() {
35 super();
36 }
37
38 public SwitchStateException(String arg0, Throwable arg1) {
39 super(arg0, arg1);
40 }
41
42 public SwitchStateException(String arg0) {
43 super(arg0);
44 }
45
46 public SwitchStateException(Throwable arg0) {
47 super(arg0);
48 }
49
50}