Umesh Krishnaswamy | 345ee99 | 2012-12-13 20:29:48 -0800 | [diff] [blame] | 1 | /** |
Ray Milkey | 269ffb9 | 2014-04-03 14:43:30 -0700 | [diff] [blame] | 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 | **/ |
Umesh Krishnaswamy | 345ee99 | 2012-12-13 20:29:48 -0800 | [diff] [blame] | 17 | |
| 18 | package net.floodlightcontroller.core.internal; |
| 19 | |
| 20 | /** |
Brian O'Connor | c67f9fa | 2014-08-07 18:17:46 -0700 | [diff] [blame] | 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. |
Ray Milkey | 269ffb9 | 2014-04-03 14:43:30 -0700 | [diff] [blame] | 28 | * |
Umesh Krishnaswamy | 345ee99 | 2012-12-13 20:29:48 -0800 | [diff] [blame] | 29 | */ |
| 30 | public 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 | } |