Yotam Harchol | f3f1115 | 2013-09-05 16:47:16 -0700 | [diff] [blame] | 1 | package org.projectfloodlight.openflow.exceptions; |
| 2 | |
| 3 | /** |
| 4 | * Error: someone asked to create an OFMessage with wireformat type and version, |
| 5 | * but that doesn't exist |
| 6 | * |
| 7 | * @author capveg |
| 8 | */ |
| 9 | public class NonExistantMessage extends Exception { |
| 10 | |
| 11 | private static final long serialVersionUID = 1L; |
| 12 | byte type; |
| 13 | byte version; |
| 14 | |
| 15 | /** |
| 16 | * Error: someone asked to create an OFMessage with wireformat type and |
| 17 | * version, but that doesn't exist |
| 18 | * |
| 19 | * @param type |
| 20 | * the wire format |
| 21 | * @param version |
| 22 | * the OpenFlow wireformat version number, e.g. 1 == v1.1, 2 = |
| 23 | * v1.2, etc. |
| 24 | */ |
| 25 | public NonExistantMessage(final byte type, final byte version) { |
| 26 | this.type = type; |
| 27 | this.version = version; |
| 28 | } |
| 29 | |
| 30 | } |