BUG-3219: introduce OutboundQueueException
[openflowjava.git] / openflow-protocol-api / src / main / java / org / opendaylight / openflowjava / protocol / api / connection / OutboundQueueException.java
1 /*
2  * Copyright (c) 2015 Pantheon Technologies s.r.o. and others. All rights reserved.
3  *
4  * This program and the accompanying materials are made available under the
5  * terms of the Eclipse Public License v1.0 which accompanies this distribution,
6  * and is available at http://www.eclipse.org/legal/epl-v10.html
7  */
8 package org.opendaylight.openflowjava.protocol.api.connection;
9
10 /**
11  * Exception reported when an exceptional event occurs on an {@link OutboundQueue},
12  * which the {@link OutboundQueueHandler} needs to be aware of.
13  */
14 public class OutboundQueueException extends Exception {
15     /**
16      * Exception reported when the device disconnects.
17      */
18     public static final OutboundQueueException DEVICE_DISCONNECTED = new OutboundQueueException("Device disconnected");
19
20     private static final long serialVersionUID = 1L;
21
22     public OutboundQueueException(final String message) {
23         super(message);
24     }
25
26     public OutboundQueueException(final String message, final Throwable cause) {
27         super(message, cause);
28     }
29 }