Mark DeviceDataException as deprecated
[openflowplugin.git] / openflowplugin-api / src / main / java / org / opendaylight / openflowplugin / api / openflow / device / exception / DeviceDataException.java
1 /*
2  * Copyright (c) 2015 Cisco Systems, Inc. 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
9 package org.opendaylight.openflowplugin.api.openflow.device.exception;
10
11 import org.opendaylight.yang.gen.v1.urn.opendaylight.openflow.protocol.rev130731.Error;
12
13 /**
14  * @deprecated FIXME: TO BE REMOVED: migrate to org.opendaylight.openflowjava.protocol.api.connection.DeviceRequestFailedException.
15  */
16 @Deprecated
17 public class DeviceDataException extends Exception {
18
19     /**
20      *
21      */
22     private static final long serialVersionUID = 1L;
23     private Error error;
24
25     public DeviceDataException(final String message) {
26         super(message);
27     }
28
29     public DeviceDataException(final String message, final Throwable cause) {
30         super(message, cause);
31     }
32
33     public DeviceDataException(final String message, final Error error) {
34         super(message);
35         this.error= error;
36     }
37
38     public Error getError() {
39         return error;
40     }
41 }