Open Kilda Java Documentation
SwitchOperationException.java
Go to the documentation of this file.
1 package org.openkilda.floodlight.switchmanager;
2 
3 import org.projectfloodlight.openflow.types.DatapathId;
4 
5 public class SwitchOperationException extends Exception {
6  private final DatapathId dpId;
7 
8  public SwitchOperationException(DatapathId dpId) {
9  this(dpId, "Switch manipulation has failed");
10  }
11 
12  public SwitchOperationException(DatapathId dpId, String message) {
13  super(message);
14  this.dpId = dpId;
15  }
16 
17  public DatapathId getDpId() {
18  return dpId;
19  }
20 }