Changed methods in DeviceContext, created DeviceReplyProcessor interface
[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 public class DeviceDataException extends Exception {
14
15     /**
16      *
17      */
18     private static final long serialVersionUID = 1L;
19     private Error error;
20
21     public DeviceDataException(String message, Throwable cause) {
22         super(message, cause);
23     }
24
25     public DeviceDataException(String message, Error error) {
26         super(message);
27         this.error= error;
28     }
29
30     public Error getError() {
31         return error;
32     }
33 }